Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 11 Weeks Ago, 1 Day Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
C++ Programming
Discussion
You have been asked to write a program that will manage health care records. You are just starting this project and will begin by picking one class to implement. Select from one of the following classes for your discussion prompt and follow the 6 steps for Implementing a Class in your textbook pp. 409-412. Share your work for each step.
Option 1: Patient class
Option 2: Doctor class
Option 3: Nurse class
Option 4: Medication class
Option 5: Hospital class
Â
Program
Your local hospital has asked you to develop a program that will manage health care records. Implement the following 2 classes and write a program that tests these classes:
Patient class has private data members firstName, lastName, patientID, billTotal.
Doctor class has private data members firstName, lastName, specialization.
For each class implement at least one constructor. The constructor should initialize at least one of the private data members. For each class implement accessor member functions for all private data members. For the Patient class, implement a mutator member function that sets the billTotal data member to an updated total if a charge has been made.
To test a class you would write a program that uses the constructor to construct an object of the class type and then calls all mutator member functions. Write a program that tests your Patient and Doctor classes. You must thoroughly comment your code by providing a comment for each line of code. Apply troubleshooting and testing strategies to ensure your code compiles, runs, and provides accurate results.
Attachments:-----------