Pizzeria Python Code

-----View all Python Download Files-----

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.


Leave a Reply

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

  • File Format; .py
  • Version: 2.7, 3.5