programming

posted by .

Write a program that displays the recommended weight, given the user’s age and height (cm). The formula for calculating the recommended weight is

recommendedWeight = (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.

  • programming -

    rehesujhejh6j6rsj6

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. health

    what should be the average weight of a 13 year old person who's height is 5 feet?
  2. English

    1. You should write down your age, height and weight on the paper. Looking at them, introduce yourself. 2. Yous should write down the information about your age, height and weight on the paper. With them, introduce yourself. 3. You …
  3. programming

    write a program that asks the user to enter an objects mass, and then calculates and displays its weight.
  4. computers

    Write a program that will ask the user to enter a person's age, weight and birth month. Your program will compare the entered value to the following and print the appropriate response. Be sure to use modules. The secret answers: age=25 …
  5. programming

    Write a program that will ask the user to enter a person's age, weight and birth month. Your program will compare the entered value to the following and print the appropriate response. Be sure to use modules. The secret answers: age=25 …
  6. math

    This is confusing: This proportion can be changed to (0.45)y = x, where x represents the person's weight in kilograms and y represents the person's weight in pounds. The recommended protein in grams is numerically equal to the person's …
  7. science computer

    accept input age, height and weight for some people. The loop will stop when the user enters value 0 for age. Calculate average for age, height and weight, and print the number of people and average age, height and weight.
  8. Algebra

    The women’s recommended weight formula from Harvard Pilgrim Healthcare says, "Give yourself 100 lb for the first 5 ft plus 5 lb for every inch over 5 ft tall." a. Find a mathematical model for this relationship, where W be the recommended …
  9. Math College

    The women’s recommended weight formula from Harvard Pilgrim Healthcare says, "Give yourself 100 lb for the first 5 ft plus 5 lb for every inch over 5 ft tall." a. Find a mathematical model for this relationship, where W be the recommended …
  10. math

    The women’s recommended weight formula from Harvard Pilgrim Healthcare says, "Give yourself 100 lb for the first 5 ft plus 5 lb for every inch over 5 ft tall." a. Find a mathematical model for this relationship, where W be the recommended …

More Similar Questions