Question
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
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started