Question: C# Lab Follow the steps below to calculate a users BMR (Basal Metabolic Rate). Your basal metabolic rate is the rate at which the body
C# Lab Follow the steps below to calculate a users BMR (Basal Metabolic Rate). Your basal metabolic rate is the rate at which the body uses energy while at rest to keep vital functions going, such as breathing and keeping warm. This calculation is vital to weight management, as it allows you to determine calories needed to maintain, lose, or gain weight. To determine your BMR, use the appropriate formula: Female: 655+(4.35 x weight in pounds)+(4.7 x height in inches)-(4.7 x age in years) Males: 66+(6.23x weight in pounds)+(12.7 x height in inches)-(6.8 x age in years). Create a new blank C# console application Write the simple code in Main that asks for and stores (in the appropriate data types) the following information input by the user: their name, age, weight, height and gender; you can assume/prompt that the weight should be in pounds and the height should be in inches. Go ahead and store gender in a string, for now. Based on the user input, calculate their BMR. Make sure that you calculate this conditionally, based on gender. HINT: you need ONLY ONE BMR variable! Display back to the user the information they entered plus the BMR that you calculated. For both parts, be sure to run and test your program to ensure it works as you intended. Test Data for part 2: Female, 63, 120 lbs, age 32, BMR = 1322.7 Male, 72, 200 lbs, age 32, BMR = 2008.8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
