Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

More Books

Students also viewed these Databases questions