Question: A bag of cookies holds 40 cookies. The calorie information on the bag says that there are 10 servings in a bag and 300
A bag of cookies holds 40 cookies. The calorie information on the bag says that there are 10 servings in a bag and 300 calories per serving. Write a program that lets the user enter the number of cookies eaten and displays the number of calories consumed. A sample of the output is shown below: Enter the number of cookies eaten: 10 Number of total calories consumed: 750 Tip: Your output does not have to use the exact wording- you can create your own version of the report - but should correctly calculate the number of calories.
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
Ans include using namespace std int howmany int cookies cout How many cookies did ... View full answer
Get step-by-step solutions from verified subject matter experts
