Question: Write a program that prompts a dieter to enter in their caloric budget (as an integer) for the week. After accepting and storing that value,

Write a program that prompts a dieter to enter in their caloric budget (as an integer) for the week. After accepting and storing that value, use a while loop to accept and process the caloric value for each meal (entered as an integer value). Within the while loop keep a running total of the caloric values of the meals entered and a count of the meals entered. Terminate the while loop when the dieter enters 0. After the while loop ends, print the count of meals entered and print a message indicating whether the dieter's caloric total intake was at, above, or below their caloric budget.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python program that prompts a dieter to enter their caloric budget and then accepts and processes the caloric values for each meal using a whi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!