Question: Solve the problem in an algorithm Code it in Python Problem: Cookie Calories A bag of cookies holds 40 cookies. The calorie information on the

 Solve the problem in an algorithm Code it in Python Problem:

Solve the problem in an algorithm Code it in Python Problem: Cookie Calories A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 servings in the bag and that a serving equals 300 calories. Write a program that asks the user to input how many cookies he or she ate and the reports how many total calories were consumed. *You MUST use constants to represent the number of cookies in the bag, number of servings, and number of calories per serving. Remember to put constants in all caps! Make sure to declare and initialize all variables before using them! Then you can do the math using those constants to find the number of calories in each cookie. Make this program your own by personalizing the introduction and output. Sample Output: WELCOME TO THE CALORIE COUNTER!! Please enter the number of cookies consumed: 5 You consumed 375 calories

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!