subject

LAB: Expression for calories burned during workout The following equations estimate the calories burned when exercising (source):
Women: Calories = ( (Age x 0.074) β€” (Weight x 0.05741) + (Heart Rate x 0.4472) β€” 20.4022 ) x Time / 4.184
Men: Calories = ( (Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) β€” 55.0969 ) x Time / 4.184
Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively.
Output calories burned for women and men. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:
System. out. printf("%.2f", yourValue);
Ex: If the input is:
49 155 148 60
the output is:
Women: 580.94 calories
Men: 891.47 calories
LabProgram. java
1 import java. util. Scanner:
2
3 public class LabProgram {
4 public static void main(String[] args) {
5
6 /* Type your code here. */
7 }
8 }
9

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Which is the correct sequence of steps to set up a document in landscape orientation? a. select page setup from the file menu. then click the margins tab and select landscape. b. select page setup from the edit menu. then click the margins tab and select landscape. c. select page setup from the insert menu. then click the margins tab and select landscape. d. select page setup from the format menu. then click the margins tab and select landscape
Answers: 1
question
Computers and Technology, 23.06.2019 16:00
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
Which of the following is not an enhancement to the standard wiki to make it more attractive for corporations? encryptionwork spacespermission toolspredictive text
Answers: 2
You know the right answer?
LAB: Expression for calories burned during workout The following equations estimate the calories bu...
Questions
Questions on the website: 13722367