Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.22 LAB: Expression for calories burned during workout The following equation estimates the average calories burned for a person when exercising, which is based on

image text in transcribed

2.22 LAB: Expression for calories burned during workout The following equation estimates the average calories burned for a person when exercising, which is based on a scientific journal article (source): Calories = ((Age x 0.2757) + (Weight x 0.03295) + (Heart Rate x 1.0781) 75.4991) x Time / 8.368 Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output the average calories burned for a person 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 149 60 the output is: Calories: 736.21 calories 382018.1734836.qxang LAB ACTIVITY 2.22.1: LAB: Expression for calories burned during workout 0/10 LabProgram.java Load default template. 2 1 import java.util.Scanner; 3 public class LabProgram { public static void main(String[] args) { 5 mio 00 OY /* Type your code here. */ } 8) Develop mode Submit mode Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box Enter program input (optional) If your code requires input values, provide them here

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions