Question: Java In this exercise, youll design a starter HealthProle class for a person. The class attributes should include the persons rst name, last name, gender,
Java
In this exercise, youll design a starter HealthProle class for a person. The class attributes should include the persons rst name, last name, gender, date of birth (consisting of separate attributes for the month, day and year of birth), height (in inches) and weight (in pounds). Your class should have a constructor that receives this data. For each attribute, provide setters and getters.The class should include methods that calculate and return the users age in years, maximum heart rate and target heart rate range, and body mass index (BMI). Write a Java application that prompts for the persons information, instantiates an object of class HealthProle for that person and prints the information from that objectincluding the persons rst name, last name, gender, date of birth, height and weightthen calculates and prints the persons age in years, BMI, maximum heart rate and target-heart-rate range. It should also display the BMI values chart.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
