Question: JAVA CODING The Calorie information on the bag claims that there are 34 cookies in the bag and that a serving (serving size 2 cookies)

JAVA CODING

JAVA CODING The Calorie information on the bag claims that there are

The Calorie information on the bag claims that there are 34 cookies in the bag and that a serving (serving size 2 cookies) equals 140 calories. Write a program that lets the user enter the number of cookies he/she actually ate and based on the chart given below, calculate the number of times (in terms of hours and seconds ) that the user needs to walk to burn the calories that are consumed. Note: You should ask user to enter his/her weight. POWER WALK CALORIES CHART YOUR WEIGHT (in pounds) CALORIES BURN PER HOUR Less than 130 173 130 between 155 216 155 between 180 255 180 between 205 284 More than 205 314 Here is a sample output: How many oreo cookies did you eat? 10 The calories that you consumed :700 cal Please enter your weight in pounds: 145 You need to walk about 3 hours and 12 min to burn 700 calories. /*********************************************************************** @Title: LastNameFirstNameBurnCalories @Purpose: To get familiar with primitive arithmetic data types in Java Author: (your last first name) @Date: (today's date) @Version: 1.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!