![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 21.10.2020 16:01 mercedezosborne
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](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
![question](/tpl/images/cats/informatica.png)
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<...
Code it in Python<...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 23.11.2020 18:50
![question](/tpl/images/cats/mkx.png)
Arts, 23.11.2020 18:50
![question](/tpl/images/cats/mat.png)
Mathematics, 23.11.2020 18:50
![question](/tpl/images/cats/mat.png)
Mathematics, 23.11.2020 18:50
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 23.11.2020 18:50
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 23.11.2020 18:50
![question](/tpl/images/cats/mat.png)
Mathematics, 23.11.2020 18:50
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 23.11.2020 18:50
![question](/tpl/images/cats/mat.png)
Mathematics, 23.11.2020 18:50
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
Physics, 23.11.2020 18:50
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 23.11.2020 18:50
![question](/tpl/images/cats/istoriya.png)
History, 23.11.2020 18:50
![question](/tpl/images/cats/fr.png)
French, 23.11.2020 18:50
![question](/tpl/images/cats/mkx.png)
Arts, 23.11.2020 18:50