Question: C# Visual Studio Write a console application that prompts users to input the number of meals consumed throughout the day. The program should prompt the

C# Visual Studio

Write a console application that prompts users to input the number of meals consumed throughout the day. The program should prompt the user to input the amount of calories consumed for each meal that is eaten this information should be stored within an array of the double data type. Negative calorie input should not be accepted, and if input, the user should be re-prompted for a positive calorie value.

Once all meal information has been received, the program should print the following information:

Total number of meals consumed

Total number of calories consumed

Average calories per meal

Total number of calories over or under the daily consumption goal of 2,000kcal

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!