Question: Write a Java program that calculates and displays the ideal weight based on the users age and height. The formula is as follows. Note that

Write a Java program that calculates and displays the ideal weight based on the users age and height. The formula is as follows. Note that the weight given by the formula is in kilograms. AGE GROUP (years) IDEAL WEIGHT FORMULA age 18 (height - 36) / 2 19 age 55 ((height - 36) / 2) + ((age - 18) / 7) 56 age 75 ((height - 36) / 2) + ((37 / 7) - ((age - 55) / 4)) age < 76 same as for those of 18 years or younger Sample Input/Output Enter your height and age: 175 35 Ideal weight for that person = 71.9286

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!