Question: Write a program that prompts the user for their height ( in inches ) and weight ( in pounds ) . The program should calculate

Write a program that prompts the user for their height (in inches) and weight (in pounds). The program should calculate BMI and then display one of three messages:
the user is within the healthy BMI range (if their BMI is between 18.5 and 24.9)
the number of pounds needed to lose in order to be at the top of the healthy BMI range (if their BMI is above 24.9)
the number of pounds needed to gain in order to be at the bottom of the healthy range (if their BMI is below 18.5) ask user if they wish to run the program again(program is only terminate if the user enters 'No'

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 Programming Questions!