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
BMI 18.5
Underweight
>3825
Ovenweight
BMI >38
Obese
Enter your weight in pounds: 160
Enter your height in inches: 70
Your Body Mass Index (Eur)is: 22.955102e4081632818.5
Normat
25
Ovenweight
BMI >38
Obese
Enter your weight in pounds: 160
Enter your height in inches: 70
Your Body Mass Index (Eur)is: 22.955102e40816328
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

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions

Question

How many states do not have a sales tax?

Answered: 1 week ago