Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pack a box of books A standard shipping box is 1 8 inches long 1 2 inches wide 1 0 . 5 inches tall. A

Pack a box of books
A standard shipping box is 18 inches long 12 inches wide 10.5 inches tall. A standard size hardcover coffee table book is 16 inches long 10 inches wide 1.2 inches thick. Books are stacked into the shipping boxes one on top of the other, with one inch padding on each side. In other words, one book plus side padding will exactly fit into the bottom of the box.
Your program will ask the user for the number of books the customer is ordering, and then comple how many standard boxes will need to be shipped.
Think about how you would solve this problem without a computer, and write down the steps you need to do so(the algorithm). Do NOT start typing code in without doing this step first! Next, translate that algorithm into a Python program. You should try to come up with the steps yourself, even though much of the program is already given to you in the starter code. Note the use of comments in your code to keep track of what is being done where.
To start thinking about this problem, think, what if I need to ship 15 books? How many boxes would I need? How many books are left over? How did I figure that out? Being able to analyze how you know how to do something is critical to being able to tell a computer how to do it. One of the main
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions

Question

Question 1 (a2) What is the reaction force Dx in [N]?

Answered: 1 week ago