Create a class called heart rates the class attributes


Create a class called heart rates. The class attributes should include the person's first name, last name, and date of birth (consisting of separate attributes for the month, day and year of birth. Your class should have a Constructor that receives this data as parameters. For each attribute provide SET and GET methods. The class also should include a method that calculates and Returns the person's age in years, another method that calculates returns a person's max heart rate and a method that calculates and Returns the person's target heart rate. Make a Java app that prompts a person's information, instantiates an objective of class Heartrates and print the information from that object including the person's first name, last name and date of birth then calculate and print the person's age in years maximum heart rate target heart rate range

Solution Preview :

Prepared by a verified Expert
Business Management: Create a class called heart rates the class attributes
Reference No:- TGS01591206

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)