This part creates a completely new class. The data attributes for the class will be first_name, last_name, age as an integer. Have the constructor that takes all three attributes. You don’t need the method to calculate the age….just the gets and sets for all three attributes. You do need methods to calculate the maximum heart rate and target heart rate.
Add a button to the lower righthand part of the window. It’s click event should instantiate two objects of the HeartRates class you created (for patient 1 and patient 2) and set their names and ages with values from the textboxes on the screen. Then it should use the values returned from their methods (make the return types String for this instead of void on these methods)
For target heart rate and maximum heart rate and report those values to the labels for them on the screen for the user.