filmov
tv
Pizzeria Python Code

Показать описание
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.
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.