Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python, I was able to do it but some of my numbers were off so thx for the help Nrite a Python program that
in python, I was able to do it but some of my numbers were off so thx for the help
Nrite 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 (3) slices of pizza. Each salad costs $7.99 per person. Each pizza costs $15.99 and has 12 slices per pizza. Only whole pizzas can be ordered. If more than ten (10) pizzas are ordered, then there will be a 15% discount to the pizza cost. If more than 10 salads are ordered there will be a 15% discount to the salad cost. The delivery charge is 7% of the entire order prior to discounts or $20 minimum. Display the number of each meals ordered (input is not considered as a display/output). 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 Lab2.py and upload your source file to the appropriate dropbox in GradeScope, NOT D2L! Example of input Number of pizza orders 43 Number of salad orders 7 Example of output Pizza cost $175.89000000000001 Save your program as Lab2.py and upload your source file to the appropriate dropbox in GradeScope, NOT D2L! Example of input Number of pizza orders 43 Number of salad orders 7 Example of output Pizza cost $175.89000000000001 Salad cost $55.93 Total $231.82000000000002 Discount $26.3835 Delivery fee $20.0 Total amount due $225.43650000000002 Your output: delivery fee 20 Expected Ouput:delivery fee23.5011 Your output: total amount 305.3705 Expected ouput:total amount 308.8716 Lab2_test3-0 points Your output: discount 32.364 Expected ouput: di scount 25.168 Your output: total amount 203.396 Expected Ouput:total amount210.5915 Lab2_test 40 points Your output: delivery fee 22.82658 Expected Ouput:delivery fee26.8548 Your output:total amount 348.92058 Expected Ouput: total amount352.9488Step 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