Starting out with Java: From control structures through objects
Chapter 2
Programming Challenges
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
8. 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 lets the user enter the number of cookies he or she actually ate and then reports the number of total calories consumed.
Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (6th Edition) (Page 106). Pearson. Kindle Edition.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Bitcoin Address - 12uPbtoTBgxKG3ppxC2NSJYmmr5qipsbds
Ether Address - 0xb6f7D2d2127a56aF7D55CdBD7d327439A9005abF
Change tip address - kakradetome.tip.me
email - [email protected]
Thanks :)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Upvoted you
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit