Question: java program help Q1. [10 pts] Create a healthRecord class for a person. The class should have the following attributes: - person's first name -

Q1. [10 pts] Create a healthRecord class for a person. The class should have the following attributes: - person's first name - last name - date of birth (consisting of separate attributes for the month, day and year of birth) - height (in m) - weight (in kg ) Your class should have a constructor that receives all the above attributes. For each attribute, provide set and get methods. The class also should include methods that: 1. computeAge : calculate and return the user's age in years 2. computeMHR: calculate and return the maximum heart rate. According to the American Heart Association (AHA) (www.americanheart.org/presenter.jhtml?identifier=4736), the formula for calculating your maximum heart rote in beats per minute is 220 minus your age in years 3. computeBMI: calculate and return the user's body mass index (BMI). The formula for calculating BMI is BMI=(heightInMetersxheightInMeters)weightInKilograms Write a testDrive class which includes your main function. In your main function: 1. Ask the user to enter his/her information as shown in the sample output below 2. Calculate and print the user's maximum heart rate 3. Calculate and print the user's BMI 4. Print the BMI category according to the following rule: Sample output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
