Question: W Program Specifications. Write a program to calculate the cost of hosting three pizza parties on Friday, Saturday and Sunday. Read from input the number
W
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}"). IN PYTHON
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 4 (2 pts). 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 (2 pts). 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
Submission
This assignment requires the submission of all Python files, along with a Word document containing the snapshots as described above.
Grading
The assignment contains 5 problems, with 10 points each.
This assignment represents 5% of the course, and the grading is done according to the following rubric Download rubric.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
