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 lets the user enter the number of cookies he or she actually ate and then reports the number of total calories consumed. java CookieCalorieCounter+ Enter number of cookies eaten: 34 Your calorie intake was: 225 calories. 1 Enter your code

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question

java

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 lets the user enter the number of cookies he or she
actually ate and then reports the number of total calories consumed.
java CookieCalorieCounter
Enter number of cookies eaten: 34
Your calorie intake was: 225 calories.
1 Enter your code
Transcribed Image Text: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 lets the user enter the number of cookies he or she actually ate and then reports the number of total calories consumed. java CookieCalorieCounter Enter number of cookies eaten: 34 Your calorie intake was: 225 calories. 1 Enter your code
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Files and Directory
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