This program requires the student to create a programming loop. The program's loop with loop between 5 and 50 times. Each loop will represent one week of the user eating and buying food. Each week the user will input the amount he or she spent on food. If the person spends more than $250 then the program will output "You are going to get fat." If the person spends less than $50.55 then the program will output "You are going to starve." After the final loop the program will display the lowest amount spent on any one week along with the most spent on any one week.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.6: Nested Loops
Problem 5E: (Mathematical functions) Write a program that calculates and displays values for y when y=xz/(xz)...
icon
Related questions
Question
100%
This program requires the student to create a programming loop. The program's
loop with loop between 5 and 50 times. Each loop will represent one week of the
user eating and buying food.
Each week the user will input the amount he or she spent on food. If the person
spends more than $250 then the program will output "You are going to get fat." If
the person spends less than $50.55 then the program will output "You are going to
starve."
After the final loop the program will display the lowest amount spent on any one
week along with the most spent on any one week.
Transcribed Image Text:This program requires the student to create a programming loop. The program's loop with loop between 5 and 50 times. Each loop will represent one week of the user eating and buying food. Each week the user will input the amount he or she spent on food. If the person spends more than $250 then the program will output "You are going to get fat." If the person spends less than $50.55 then the program will output "You are going to starve." After the final loop the program will display the lowest amount spent on any one week along with the most spent on any one week.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,