Question
One way to measure the amount of energy expended during an exercise workout is to use metabolic equivalents (MET). Here are some METS per minute
One way to measure the amount of energy expended during an exercise workout is to use metabolic equivalents (MET). Here are some METS per minute for various activities: Running 6 MPH: 10 METS (define a constant called RUNNING6MPH_METS in your program) Basketball: 8 METS (define a constant called BASKETBALL_METS in your program) Sleeping: 1 METS (define a constant called SLEEPING_METS in your program) The number of calories burned per minute may be estimated using the formula: Calories/ Minute = 0.0175 METS Weight in kilograms Write a Java program, named CCCS300_A1_Q1, that prints a Welcome to the calorie calculator! message, calculates and outputs the total number of calories burned (in two decimal digits by truncating) by three individuals, each of whom is performing an exercise activity. The details of input arguments to the program are the following: 1st input argument is an integer value that represents the weight in pounds of a person who is running 6 MPH for 30 minutes every day. 2nd input argument is an integer value that represents the weight in pounds of a person who is playing basketball for 60 minutes every day. 3rd input argument is an integer value that represents the weight in pounds of a person who is sleeping for 6 hours every day. Note: 1 kilogram = 2.2 pounds. 1 hour = 60 minutes. Hint: To truncate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started