Question: An introduction to programming with c++ 8th edition in this exercise, you will create a program that displays the number of daily calories needed to
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. 15. Moderately active female: total daily calories -weight multiplied by 12 calories per pound Relatively inactive female: total daily calories weight multiplied by 10 calories per pound Moderately active male: total daily calories weight multiplied by 15 calories per pound Relatively inactive male: total daily calories weight multiplied by 13 calories per pound Gender Activity Weight 150 120 180 200 Figure 6-44 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. a. b. List the input, processing, and output items, as well as the algorithm, in a similar to the one shown earlier in Figure 6-27. Then code the algorithm into a program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
