Question: Figure 5-35 shows the MifflinSt Jeor formulas for calculating a persons basal metabolic rate (BMR), which is the minimum number of calories needed to keep

Figure 5-35 shows the Mifflin–St Jeor formulas for calculating a person’s basal metabolic rate (BMR), which is the minimum number of calories needed to keep his or her body functioning while resting for 24 hours. A personal trainer at a local health club wants a program that displays a client’s BMR. a. Create an IPO chart for the problem, and then desk-check the algorithm twice. For the first desk-check, display the BMR for a 25-year-old male whose weight and height are 175 pounds and 6 feet, respectively. For the second desk-check, display the BMR for a 31-year-old female whose weight and height are 130 pounds and 5.5 feet, respectively. b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 5-27. Then code the algorithm into a program. c. Desk-check the program using the same data used to desk-check the algorithm. d. If necessary, create a new project named Intermediate14 Project, and save it in the Cpp8\Chap05 folder. Enter your C++ instructions into a source file named Intermediate14.cpp. Also enter appropriate comments and any additional instructions required by the compiler. Display the BMR in fixed-point notation with no decimal places. Test the program using the same data used to desk-check the program. 


BMR formulas Males BMR = (10 x weight in kg) + (6.25 x height in cm) – (5 x age in years) + 5 Females BMR = (10 x weight in kg) + (6.25 x height in cm) – (5 x age in years) – 161 Note: One kilogram (kg)

BMR formulas Males BMR = (10 x weight in kg) + (6.25 x height in cm) (5 x age in years) + 5 Females BMR = (10 x weight in kg) + (6.25 x height in cm) (5 x age in years) 161 Note: One kilogram (kg) equals 2.2 pounds. One inch equals 2.54 centimeters (cm). Figure 5-35

Step by Step Solution

3.28 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Input gender M or F age in years weight in pounds height in feet gender A4 F weight in legs 591 age ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Microsoft Visual C# Introduction Questions!