Problem

In this exercise, you will create a program that displays the number of daily calories n...

In this exercise, you will create a program that displays the number of daily calories needed to maintain your current weight. The number of calories is based on your gender, activity level, and weight. The formulas for calculating the daily calories are shown in Figure 6-50.

a. Create an IPO chart for the problem, and then desk-check the algorithm using the test data included in Figure 6-50. Also desk-check it using X as the gender code, and then desk-check it again using F as the gender code and K as the activity code.

b. List the input, processing, and output items, as well as the algorithm, in a chart similar to the one shown earlier in Figure 6-47. 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 Intermediate15 Project and save it in the Cpp7\Chap06 folder. Enter your C++ instructions into a source file named Intermediate15.cpp. Also enter appropriate comments and any additional instructions required by the compiler.

e. Save and run the program. Test the program using the same data used to desk-check the program.

REFERENCE: FIGURE 6-47

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 6