Question: you are to write a java program that records the health profile. you will design a starter HealthProfile program for a person. The program should

you are to write a java program that records the health profile. you will design a starter HealthProfile program for a person. The program should include the persons age, height (in inches), and weight (in pounds). The program also should include functions that calculate maximum heart rate and target heart rate, and body mass index (BMI). The program should prompt for the persons information from that variable including age, height and weight then it should calculate and display the BMI, maximum heart rate and target heart rate range. Use the following formula to calculate BMI, maximum heart rate and target heart rate range: ************************************************************************ Formula: Maximum Heart Rate = 220 age Target Heart Rate Range = 50 80 % of Maximum Heart Rate ************************************************************************ The program should notify to the user what the BMI value means. BMI values will be determined as follows: ************************************************************************ If BMI value is in 19 to 24, he/she is "Normal". If BMI value is in 25 to 29, he/she is "Overweight". If BMI value is in 30 to 39, he/she is "Obese". If BMI value is bigger than 40, he/she is "Extreme Obesity". ************************************************************************ The program should keep asking the user to input data if he/she has more to calculate. The program allows decimal places. Therefore, variables used in this program should have the proper data type. Output of the program should be well formatted, readable, and professional. 1. Declare variable names and proper data type of each variable. (5) 2. Import scanner class for user input. (5) 3. Add data entered by a user using do/while loop. (35) 4. Calculate and decide BMI value. (5) 5. Calculate Maximum heart rate and target heart rate. (5) 6. All output values must have two decimal places. (10) 7. Well-formatted, readable, and professional output. (25) 8. Ask a user input more data after each calculation. If no more data to input, program stops. (10) 9. Your output should look like following: *****************************************************************

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