2. Write a program that displays the recommended weight in kilograms, given the user’s age and height in centimeters. The formula for calculating the recommended weight is
Recommended weight = (height – 100 + age %10) *0.90
Define a service class named height and include an appropriate method for getting a recommended weight of a designated height.
Comments
Leave a comment