Advertisement
akosiraff

Heart Rate

Mar 4th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/heart-rate/
  3. 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.
  4. 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)
  5. For target heart rate and maximum heart rate and report those values to the labels for them on the screen for the user.
  6.  
  7. Download: http://solutionzip.com/downloads/heart-rate/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement