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 store all information given in the above description. Then use the constants in your math after asking the user how many cookies they ate. Make sure to write the algorithm first!! Then space it out with your code around it. *Hint - you have to store the input of how many cookies they ate as a whole number. Underlined values in the sample output means the user is typing that in. Upload the completed python file here

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question
100%
Python coding
File
Tools
View
Document1 - Word
***
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
Let's start off by getting your name: Bob
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
Hello Bob, next let's see how many calories you have consumed in
were consumed.
cookies today.
You must use constants to store all information given in the above
Please enter the number of cookies consumed: 5
description. Then use the constants in your math after asking the
user how many cookies they ate.
Make sure to write the algorithm first!! Then space it out with your
Here it is Bob, you consumed 375 calories.
code around it.
Thank you for using my cookie calorie counter!
*Hint - you have to store the input of how many cookies they ate as
a whole number.
End of document
Underlined values in the sample output means the user is typing that
in.
Upload the completed python file here
Sample Output:
京古古古*
WELCOME TO THE COOKIE CALORIE COUNTERI
中
+100
Screens 1-2 of 2
234 PM
A D O D G 4
2P/2021
P Type here to search
HD 1080
729
圖
de
Transcribed Image Text:File Tools View Document1 - Word *** 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 Let's start off by getting your name: Bob 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 Hello Bob, next let's see how many calories you have consumed in were consumed. cookies today. You must use constants to store all information given in the above Please enter the number of cookies consumed: 5 description. Then use the constants in your math after asking the user how many cookies they ate. Make sure to write the algorithm first!! Then space it out with your Here it is Bob, you consumed 375 calories. code around it. Thank you for using my cookie calorie counter! *Hint - you have to store the input of how many cookies they ate as a whole number. End of document Underlined values in the sample output means the user is typing that in. Upload the completed python file here Sample Output: 京古古古* WELCOME TO THE COOKIE CALORIE COUNTERI 中 +100 Screens 1-2 of 2 234 PM A D O D G 4 2P/2021 P Type here to search HD 1080 729 圖 de
Expert Solution
Step 1

Step 1:-

The algorithm is defined as a set of instructions that is very helpful for design the program. It is written in the English language that can be understood by anyone.

 

 

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT