A large book box holds 80 lbs, a medium box hold 50 lbs. and a small holds 30 lbs. The average book is 10 pounds. Have the user enter a number of books and determine the most efficient packing, meaning the number of each size box if books are packed will to fill the large box first. It they do not fill the larger box, then they must be packed in the next size down. In other words, you are to fill the larger boxes before using a smaller box, but you can't leave empty space in the larger boxes, only in the smallest box used. Report the number of each box used

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 15PE
icon
Related questions
Question
Give the pseudo code and algorithm. Python thnx you
A large book box holds 80 lbs, a medium box hold 50 lbs. and a small holds 30 lbs.
The average book is 10 pounds. Have the user enter a number of books and determine the most efficient packing,
meaning the number of each size box if books are packed will to fill the large box first. It they do not fill the larger box,
then they must be packed in the next size down. In other words, you are to fill the larger boxes before using a smaller
box, but you can't leave empty space in the larger boxes, only in the smallest box used. Report the number of each box
used
Transcribed Image Text:A large book box holds 80 lbs, a medium box hold 50 lbs. and a small holds 30 lbs. The average book is 10 pounds. Have the user enter a number of books and determine the most efficient packing, meaning the number of each size box if books are packed will to fill the large box first. It they do not fill the larger box, then they must be packed in the next size down. In other words, you are to fill the larger boxes before using a smaller box, but you can't leave empty space in the larger boxes, only in the smallest box used. Report the number of each box used
Expert Solution
steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT