Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C# (Pseudocode) and implement (Source Code) a program that asks the user for their height (in inches), weight (in pounds), age and gender. Use

Using C# (Pseudocode) and implement (Source Code) a program that asks the user for their height (in inches), weight (in pounds), age and gender. Use loops to validate user input and to continue running for a new user until a sentinel value is entered. Ask them to select their approximate level of exercise each week from the options below, then determine and print their allowed daily caloric intake using their BMR:

Female BMR = 655+(4.35 * weight) + (4.7 * height) - (4.7 * userAge );

Male BMR = 66+(6.23 * weight) + (12.7 * height) - (6.8 * userAge);

1. You don't exercise: BMR x 1.2 = Calories Allowed

2. You engage in light exercise one to three days a week: BMR x 1.375

3. You exercise moderately three to five times a week: BMR x 1.55

4. You exercise intensely six to seven days a week: BMR x 1.725

5. You exercise intensely six to seven days a week and have a physically active job: BMR x 1.9

Sample Run 1: Female, 63, 120 lbs, age 32, BMR = 1322.7, Exercise 3, DCA: 2050.18

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

socialist egalitarianism which resulted in wage levelling;

Answered: 1 week ago

Question

soyuznye (all-Union, controlling enterprises directly from Moscow);

Answered: 1 week ago