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.
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.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images