Question: 1 8 . 1 1 LAB * : Program: Pizza Party LABACTIVITY 1 8 . 1 1 . 1 : LAB * : Program: Pizza
LAB: Program: Pizza Party
LABACTIVITY
: LAB: Program: Pizza party weekend
Program Specifications. Write a program to calculate the cost of hosting pizza a party. 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,printfCost: $cost:f
Step 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 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 the cost for all pizzas.
Step Calculate the sales tax and delivery charge of cost including tax
Step Calculate and output the total including pizza, tax and delivery. Submit for grading to confirm tests pass.
Ex: If the input is:
The output is:
Pizza Night Party Pizzas: $ Tax: $ Delivery: $ Total: $
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
