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
>3025
Overweight
BNI >30
Obese
Enter your weight in pounds: 160
Enter your height in inches: 70
Your Body Mass Index (BuT)is: 22.95510204081632818.5
Normal
25
Overweight
BNI >30
Obese
Enter your weight in pounds: 160
Enter your height in inches: 70
Your Body Mass Index (BuT)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_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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

How important is the WBS to the schedule and risk management?

Answered: 1 week ago