Question: program that does the following exactly once: int W e a complete C program that does the Uses a user validation loop to prompt its

 program that does the following exactly once: int W e a

program that does the following exactly once: int W e a complete C program that does the Uses a user validation loop to prompt its u that they have eaten in the last (30 days) (0; 250 ) Computes and prints (to the screen th (which may have a fractional component). Hlut Displays exactly one of the following - if the average number of pompt its user to enter the non-negative number of hamburgers ist (30 days) month, and stores the response into a variable of type while o the screen the average number of hamburgers that were eaten per day le of the following messages (based on the given criteria): e average number of hamburgers eaten per day is greater than 0.5, print (to the screen) the message: "That is a lot of burgers if the average number of hamburgers eaten per day is equal mber of hamburgers eaten per day is equal to 0. print (to the screen) the message: "I do not believe you" - if the average number of ha average number of hamburgers eaten per day is greater than 0 but less than or equal 1.0, Print (to the screen) the message: "That sounds reasonable" Sample run(s): run 1 ----------- Enter number of hamburgers eaten in (30 days) : -10 Enter number of hamburgers eaten in (30 days) : -2 Enter number of hamburgers eaten in (30 days) : 18 The average number of hamburgers eaten per day was 0.6 That is a lot of burgers run 1 run 2 ----- Enter number of hamburgers eaten in (30 days) : 0 The average number of hamburgers eaten per day was 0.0 I do not believe you run 2 ------- run 3 ---- Enter number of hamburgers eaten in (30 days) : 12 The average number of hamburgers eaten per day was 0.4 That sounds reasonable run 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!