Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python please A packing company sells boxes that can be used to pack 12 books. If the number of books to be packed is
in python please
A packing company sells boxes that can be used to pack 12 books. If the number of books to be packed is not a multiple of 12, then the remaining books require an additional box. For example, 24 books require 2 boxes. 28 books would require 3 boxes. Write a program that prompts the user to enter the number of books they need to pack using the following prompt: prompt = "Enter the number of books that need to be packed: " The program will then calculate and display the number of boxes required. Some examples of the output the program produces are shown below. You can assume that the user will always enter an integer value larger than 0 when prompted for the number of books that need to be packed. Hint: The math.ceil() function may be useful for this exercise. For example: Input Result 12 Enter the number of books that need to be packed: 12 1 box(es) is/are needed for packing 13 Enter the number of books that need to be packed: 13 2 box(es) is/are needed for packing Answer: (penalty regime: 0 %) Reset answer 1 prompt "Enter the number of books that need to be packedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started