Figure 5-35(SEE ATTACHED) 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(SEE ATTACHED). 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 Cpp8Chap05 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 withno decimal places. Test the program using the same data used to desk-check theprogram.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more