Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions

Question

Discuss the hierarchy of Android widgets. two paragraphs needed

Answered: 1 week ago