subject

For this lab you will do 2 things: 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!!

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:10
Which activity should be part of a long-term plan to positively affect yourhealth? oa. wearing regular clothing when handling toxinsob. not worrying about secondhand smokeoc. avoiding excessive exposure to sunlightod. drinking only well water
Answers: 1
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
question
Computers and Technology, 23.06.2019 19:00
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
You know the right answer?
For this lab you will do 2 things: Solve the problem in an algorithm

Code it in Python<...
Questions
question
Mathematics, 23.11.2020 18:50
question
Mathematics, 23.11.2020 18:50
question
Social Studies, 23.11.2020 18:50
question
Social Studies, 23.11.2020 18:50
question
Mathematics, 23.11.2020 18:50
question
History, 23.11.2020 18:50
question
Arts, 23.11.2020 18:50
Questions on the website: 13722367