Question: 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

 In this exercise, you will create a program that displays the
number of daily calories needed to maintain your current weight. The number

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-44. a. Create an IPO chart for the problem, and then desk-check the algorithm using the test data included in Figure 6-44. Also desk-check it using invalid data, such as X as the gender code, K as the activity code, or a negative number for the weight. 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-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 Intermediate15 Project and save it in the Cpp8\Chap06 folder. Enter your C++instructions into a source file named tions required by the compiler. e. Save and run the program. Test the program using the same data used to deskcheck the program. 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-44. a. Create an IPO chart for the problem, and then desk-check the algorithm using the test data included in Figure 6-44. Also desk-check it using invalid data, such as X as the gender code, K as the activity code, or a negative number for the weight. 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-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 Intermediate15 Project and save it in the Cpp8\Chap06 folder. Enter your C++instructions into a source file named tions required by the compiler. e. Save and run the program. Test the program using the same data used to deskcheck the program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!