Question: Object-oriented Programming (Java Language) This question part of selection & repetiton. Define a service class named RecommendedWeight and include an appropriate methods for getting a
Object-oriented Programming (Java Language)
This question part of selection & repetiton.
- Define a service class named RecommendedWeight and include an appropriate methods for getting a recommended weight of a designated height. Then complete a program that displays the recommended weight, given the users age and height (cm). Consider the following situation:
if (the height is between 140cm and 230cm)
compute the recommended weight
else
display an error message
The formula for calculating the recommended weight is
recommendedWeight = (height 100 + age / 10) * 0.90
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
