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  

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

1 Expert Approved Answer
Step: 1 Unlock

Ans include using namespace std int howmany int cookies cout How many cookies did ... View full answer

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 Operating System Questions!