Question: Create python code: Read from input the number of people ( int ) , average slices per person ( float ) and cost of one
Create python code: 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 and output the cost for all pizzas. Submit for grading to confirm test passes.Calculate the labor cost for installation $ per actual square foot Output labor cost. Submit for grading to confirm tests passCalculate sales tax on carpet and labor cost. Total cost includes carpet, labor and sales tax. Output sales tax and total cost. Submit for grading to confirm tests pass.Repeat steps including additional input for a second order one order per line Maintain total sales for both orders. Output information for each order with a heading and then total sales for both orders. Submit for grading to confirm tests pass.Repeat steps including additional input for a third order one order per line Maintain total sales for all orders. Output information for each order with a heading and then total sales for all orders. Submit for grading to confirm all tests pass.
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
