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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started