Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Python program that will determine food costs for the KSU CCSE hackathon. The hackathon will have pizza and salad option. The program should
Write a Python program that will determine food costs for the KSU CCSE hackathon.
The hackathon will have pizza and salad option. The program should ask the number of
people who ordered pizza and the number of people who ordered a salad. Each person
who orders pizza is allocated three slices of pizza. Each salad costs $ per
person. Each pizza costs $ and has slices per pizza. Only whole pizzas can be
ordered.
If more than ten pizzas are ordered, then there will be a discount to the pizza
cost If more than salads are ordered there will be a discount to the salad cost.
The delivery charge is of the entire order prior to discounts or $ minimum.
Display the number of each meals ordered input is not considered as a displayoutput
Determine and display the number of pizzas needed. Display the cost of the pizza's
and display the cost of salads before any discounts Display the discount amount and
delivery charge. Finally display the total amount due. You do not need to round or
truncate your output.
Save your program as
Labpy and upload your source file to the appropriate dropbox
in GradeScope, NOT DL
Example of input
Number of pizza orders
Number of salad orders
Example of output
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started