Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions