Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Homework 2 ( 5 % ) DELIVERY: Through Email Due Date / Time: 0 4 - January - 2 0 2 4 / 2 3

Homework 2(5%)
DELIVERY: Through Email
Due Date/Time: 04-January-2024/23:59
Create a Java program that calculates the Body Mass Index (BMI) based on the user's weight in pounds and height in inches.
User Input:
Prompt the user to enter their weight in pounds.
Prompt the user to enter their height in inches.
Calculation:
Calculate the BMI using the formula:
)2
where weight is in pounds and height is in inches
Display Result: Display the BMI
Sample Output:
II BMI Calculator II
BMI18.5
Underweight
>3825
Ovenweight
BMI >38
obese
Enter your weight in pounds: 160
Enter your height in inches: 70
Your Body Mass Index (EMI)is: 22.95510204081632818.5
Normal
25
Ovenweight
BMI >38
obese
Enter your weight in pounds: 160
Enter your height in inches: 70
Your Body Mass Index (EMI)is: 22.955102040816328
image text in transcribed

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

Step: 3

blur-text-image

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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago