Question: 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
Get step-by-step solutions from verified subject matter experts
