Question #1: Treadmill burned calories Java Program A treadmill workout machine provides the following activities: running, walking, and mountain climbers. The machine uses metabolic equivalents (MET) to measure the amount of energy that is expended during exercise. Here are the machine different activities and their METS: Running 6 MPH: 10 METS Walking 3 MPH: 4 METS Mountain Climbers 3 MPH: 8 METS The number of calories burned per minute may be estimated using the formula: Energy expenditure (Calories/ Minute) = 0.0175 × MET × Weight (in kilograms). In this question, write a Java program correctly, which: 1. Display a welcome message. 2. Prompts the user to enter the weight in pounds. 3. Prompts the user to enter the running, walking and mountain climbers’ times respectively. 4. calculates and outputs the calories burned for each activity as well as the total number of calories burned. 5. Display a farewell message, so that the user knows that the program has terminated normally, example: Keep up your hard work.Your progress is amazing! Thank you for using Calories burned calculator. See you soon... Note: One kilogram is equal to 2.2 pounds. The following are samples of screen shots to illustrate the expected behavior of your program. Your program must display the same information with the same format. And should work for any valid user entered data.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Question #1: Treadmill burned calories Java Program
A treadmill workout machine provides the following activities: running, walking, and mountain
climbers. The machine uses metabolic equivalents (MET) to measure the amount of energy that
is expended during exercise.
Here are the machine different activities and their METS:
Running 6 MPH: 10 METS
Walking 3 MPH: 4 METS
Mountain Climbers 3 MPH: 8 METS
The number of calories burned per minute may be estimated using the formula:
Energy expenditure (Calories/ Minute) = 0.0175 × MET × Weight (in kilograms).
In this question, write a Java program correctly, which:
1. Display a welcome message.
2. Prompts the user to enter the weight in pounds.
3. Prompts the user to enter the running, walking and mountain climbers’ times
respectively.
4. calculates and outputs the calories burned for each activity as well as the total number of
calories burned.
5. Display a farewell message, so that the user knows that the program has terminated
normally, example:

Keep up your hard work.Your progress is amazing!
Thank you for using Calories burned calculator.
See you soon...

Note: One kilogram is equal to 2.2 pounds.
The following are samples of screen shots to illustrate the expected behavior of your program.
Your program must display the same information with the same format. And should work for any
valid user entered data.

 

Welcome to Calories burned calculator:
Please enter your weight in pounds:
120
Running time (minutes): 30
Walking time (minutes): 30
Mountain Climbers time (minutes): 30
You burned an estimated 286.3636363636364 Calories Running,
burned an estimated 114.54545454545456 Calories walking, and
burned an estimated 229.09090909090912 Mountain Climbers.
Total calories burned = 630.0
Keep up your hard work. Your progress is amazing!
Thank you for using Calories burned calculator.
See you soon...
Figure 1: Sample1 output of Question1.
Transcribed Image Text:Welcome to Calories burned calculator: Please enter your weight in pounds: 120 Running time (minutes): 30 Walking time (minutes): 30 Mountain Climbers time (minutes): 30 You burned an estimated 286.3636363636364 Calories Running, burned an estimated 114.54545454545456 Calories walking, and burned an estimated 229.09090909090912 Mountain Climbers. Total calories burned = 630.0 Keep up your hard work. Your progress is amazing! Thank you for using Calories burned calculator. See you soon... Figure 1: Sample1 output of Question1.
Welcome to Calories burned calculator:
Please enter your weight in pounds:
150
Running time (minutes): 20
Walking time (minutes): 40
Mountain Climbers time (minutes): 10
You burned an estimated 238.63636363636363 Calories Running,
burned an estimated 190.9090909090909 Calories walking, and
burned an estimated 95.45454545454545 Mountain Climber.
Total calories burned = 525.0
Keep up your hard work. Your progress is amazing!
Thank you for using Calories burned calculator.
See you soon...
Figure2: Sample2 output of Question1.
Transcribed Image Text:Welcome to Calories burned calculator: Please enter your weight in pounds: 150 Running time (minutes): 20 Walking time (minutes): 40 Mountain Climbers time (minutes): 10 You burned an estimated 238.63636363636363 Calories Running, burned an estimated 190.9090909090909 Calories walking, and burned an estimated 95.45454545454545 Mountain Climber. Total calories burned = 525.0 Keep up your hard work. Your progress is amazing! Thank you for using Calories burned calculator. See you soon... Figure2: Sample2 output of Question1.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Data members
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education