Please write a program which estimates a user's typical food expenditure. The program asks the user how many times a week they eat at the student cafeteria. Then it asks for the price of a typical student lunch, and for money spent on groceries during the week. Based on this information the program calculates the user's typical food expenditure both weekly and daily. The program should function as follows: How many times a week do you eat at the student cafeteria? 4 The price of a typical student lunch? 2.5 How much money do you spend on groceries in a week? 28.5 Average food expenditure: Daily: 5.5 euros Weekly: 38.5 euros Sample output

icon
Related questions
Question
Please write a program which estimates a user's typical food expenditure.
The program asks the user how many times a week they eat at the student cafeteria.
Then it asks for the price of a typical student lunch, and for money spent on groceries
during the week.
Based on this information the program calculates the user's typical food expenditure
both weekly and daily.
The program should function as follows:
How many times a week do you eat at the student cafeteria? 4
The price of a typical student lunch? 2.5
How much money do you spend on groceries in a week? 28.5
Average food expenditure:
Daily: 5.5 euros
Weekly: 38.5 euros
Sample output
Transcribed Image Text:Please write a program which estimates a user's typical food expenditure. The program asks the user how many times a week they eat at the student cafeteria. Then it asks for the price of a typical student lunch, and for money spent on groceries during the week. Based on this information the program calculates the user's typical food expenditure both weekly and daily. The program should function as follows: How many times a week do you eat at the student cafeteria? 4 The price of a typical student lunch? 2.5 How much money do you spend on groceries in a week? 28.5 Average food expenditure: Daily: 5.5 euros Weekly: 38.5 euros Sample output
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS