Question: Write the code in python Run without error Contain a loop to collect user input Contain constants ( no magic numbers! ) Dual and Nested
Write the code in python
Run without error
Contain a loop to collect user input
Contain constants no magic numbers!
Dual and Nested Decisions
Write a program asking the user how much they spent the last five times they've eaten at a restaurant, then display the average cost per meal.
The program should use a loop to collect the data, calculate the total, calculate the average, and then display a custom message based on that average.
There should be at least three custom messages based on whether the user spends less than $ less than $ or more than $ on average per meal. You are welcome to add additional criteria and messaging, but those three are required.
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
