Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# Input the number of books in the order: books _ ordered = int ( input ( Input the number of books in the

# Input the number of books in the order:
books_ordered = int(input("Input the number of books in the order: "))
# Dimensions of the shipping box and coffee table book
box_length, box_width, box_height =18,12,10.5
book_length, book_width, book_thickness =16,10,1.2
# Calculate the books per box (using one inch padding on each side)
books_per_box =(box_height //(book_thickness +2))*(box_length // book_length)*(box_width // book_width)
# Calculate the number of standard boxes needed
num_boxes = books_ordered // books_per_box
# Calculate the number of books left over
left_over = books_ordered % books_per_box
# Output the result
print(f"We will need {num_boxes} standard boxes. There will be {left_over} books left to ship in a smaller box.")

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

More Books

Students also viewed these Databases questions

Question

What are the three addressing modes supported by the MIPS processor

Answered: 1 week ago

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago

Question

1. Define the nature of interviews

Answered: 1 week ago

Question

2. Outline the different types of interviews

Answered: 1 week ago