Question
PLEASE DO IN C# AND MAKE SURE I CAN COPY CODE INTO VISUAL STUDIO Program 2: Design (Pseudocode) and implement (Source Code) a program that
PLEASE DO IN C# AND MAKE SURE I CAN COPY CODE INTO VISUAL STUDIO Program 2: Design (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 Sample Run 2: Male, 72, 200 lbs, age 32, BMR = 2008.8, Exercise 4, DCA: 3465.18 DCA = Daily Caloric Allowance
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