PLEASE USE PYTHON to solve all parts to this problem Program Specifications. Write a program to calculate the cost of hosting three pizza parties on Friday, Saturday and Sunday. Read from input the number of people attending, the average number of slices per person and the cost of one pizza. Dollar values are output with two decimals. For example, print(f"Cost: ${cost:.2f}"). Note: This program is designed for incremental development. Complete each step, take snapshots of the results, and include them in the final document you submit for grading. Template: import math # type your code adding plenty of comments for better understanding of the steps Step 1 . Read from input the number of people (int), average slices per person (float) and cost of one pizza (float). Calculate the number of whole pizzas needed (8 slices per pizza). There will likely be leftovers for breakfast. Hint: Use the ceil() function from the math library to round up to the nearest whole number and convert to an int. Calculate and output the cost for all pizzas. Ex: If the input is: 10 2.6 10.50 The output is: Friday Night Party 4 Pizzas: $42.00 Step 2. Calculate and output the sales tax (7%). Calculate and output the delivery charge (20% of cost including tax). Ex: If the input is: 10 2.6 10.50 The output is: Friday Night Party 4 Pizzas: $42.00 Tax: $2.94 Delivery: $8.99 Step 3 . Calculate and output the total including pizza, tax and delivery. Ex: If the input is: 10 2.6 10.50 The output is: Friday Night Party 4 Pizzas: $42.00 Tax: $2.94 Delivery: $8.99 Total: $53.93 Step 4. Repeat steps 1 - 3 with additional inputs for Saturday night (one order per line). Maintain and output a separate total for both parties. Ex: If the input is: 9 2.5 10.95 14 3.2 14.95 The output is: Friday Night Party 3 Pizzas: $32.85 Tax: $2.30 Delivery: $7.03 Total: $42.18 Saturday Night Party 6 Pizzas: $89.70 Tax: $6.28 Delivery: $19.20 Total: $115.17 Weekend Total: $157.35 Step 5 . Repeat steps 1 - 3 with additional inputs for Sunday night (one order per line). Maintain and output a total for all parties. Ex: If the input is: 6 2.8 10.95 22 2.1 12.95 12 1.8 14.95 The output is: Friday Night Party 3 Pizzas: $32.85 Tax: $2.30 Delivery: $7.03 Total: $42.18 Saturday Night Party 6 Pizzas: $77.70 Tax: $5.44 Delivery: $16.63 Total: $99.77 Sunday Night Party 3 Pizzas: $44.85 Tax: $3.14 Delivery: $9.60 Total: $57.59 Weekend Total: $199.53
Problem 2:
PLEASE USE PYTHON to solve all parts to this problem
Write a program to calculate the cost of hosting three pizza parties on Friday, Saturday and Sunday. Read from input the number of people attending, the average number of slices per person and the cost of one pizza. Dollar values are output with two decimals. For example, print(f"Cost: ${cost:.2f}").
Note: This program is designed for incremental development. Complete each step, take snapshots of the results, and include them in the final document you submit for grading.
Template:
import math
# type your code adding plenty of comments for better understanding of the steps
Step 1 . Read from input the number of people (int), average slices per person (float) and cost of one pizza (float). Calculate the number of whole pizzas needed (8 slices per pizza). There will likely be leftovers for breakfast. Hint: Use the ceil() function from the math library to round up to the nearest whole number and convert to an int. Calculate and output the cost for all pizzas.
Ex: If the input is:
10 2.6 10.50
The output is:
Friday Night Party
4 Pizzas: $42.00
Step 2. Calculate and output the sales tax (7%). Calculate and output the delivery charge (20% of cost including tax).
Ex: If the input is:
10 2.6 10.50
The output is:
Friday Night Party
4 Pizzas: $42.00
Tax: $2.94
Delivery: $8.99
Step 3 . Calculate and output the total including pizza, tax and delivery.
Ex: If the input is:
10 2.6 10.50
The output is:
Friday Night Party
4 Pizzas: $42.00
Tax: $2.94
Delivery: $8.99
Total: $53.93
Step 4. Repeat steps 1 - 3 with additional inputs for Saturday night (one order per line). Maintain and output a separate total for both parties.
Ex: If the input is:
9 2.5 10.95
14 3.2 14.95
The output is:
Friday Night Party
3 Pizzas: $32.85
Tax: $2.30
Delivery: $7.03
Total: $42.18
Saturday Night Party
6 Pizzas: $89.70
Tax: $6.28
Delivery: $19.20
Total: $115.17
Weekend Total: $157.35
Step 5 . Repeat steps 1 - 3 with additional inputs for Sunday night (one order per line). Maintain and output a total for all parties.
Ex: If the input is:
6 2.8 10.95
22 2.1 12.95
12 1.8 14.95
The output is:
Friday Night Party
3 Pizzas: $32.85
Tax: $2.30
Delivery: $7.03
Total: $42.18
Saturday Night Party
6 Pizzas: $77.70
Tax: $5.44
Delivery: $16.63
Total: $99.77
Sunday Night Party
3 Pizzas: $44.85
Tax: $3.14
Delivery: $9.60
Total: $57.59
Weekend Total: $199.53
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)