Question: Write a demo class BMIDemo.java. It should prompt the user to enter the name, age, weight in pounds and height in inches. With these values,

Write a demo class BMIDemo.java. It should prompt the user to enter the name, age, weight in pounds

and height in inches. With these values, it should create a Person object. If the age is under 20, it should

simply display The minimum age should be 20 in order to calculate the BMI. If the age is >=20, then it

should call the method calcBMI() to find the bmi and display the BMI. It should also display the BMI

status based on the chart given above.

FULL QUESTION SHOWN IN IMAGES BELOW

------------------------------- Write a demo class BMIDemo.java. It should prompt the user to

enter the name, age, weight in pounds and height in inches. Withthese values, it should create a Person object. If the age isunder 20, it should simply display The minimum age should be 20

Exercise 4 10 points Body Mass Index (BMI) is a measure of health based on height and weight. Given a person's weight in pounds and height in inches, the BMI can be calculated using the formula: BMI 703 X Weight in pounds ((Height in inches)X(Height in inches)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!