Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 packed

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_2

Step: 3

blur-text-image_3

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions