Digital Academic Solutions

Pizzeria Python Code

SOLUTION AVAILABLE AT: http://libraay.com/downloads/pizzeria-python-code/

Problem:

At a pizzeria:
adults order 2 slices,
teens order 3 slices, and
children order 1 slice.
Test your program with three different sets of data.
Copy the results totesting.txt.
Write and test a program to prompt the user for the number of adults, teens, and children in a party. Assuming that there are 8 slices per pizza, calculate and print the minimum number of whole pizzas required.
NOTE: If there are 2 adults, 1 teen and 3 children, then you need 10 slices. The answer should be 2 pizzas, not 1.25 pizzas.

SOLUTION AVAILABLE AT: http://libraay.com/downloads/pizzeria-python-code/

Leave a Reply

Your email address will not be published. Required fields are marked *



Solutions Authored by 15+ Years Experienced Industry Experts