Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Needed in C++ NOTE: please READ>>For these exercises, create header files and implementation files. Make sure to turn in all files, so I can compile
Needed in C++
NOTE: please READ>>For these exercises, create header files and implementation files. Make sure to turn in all files, so I can compile and run on my system. Compress all files and submit as one compressed file. It's best if you create different folders for each question and then compress all folders into one compressed file to submit. We like to computerize the billing system of a hospital. Turn in a UML diagram for the patientType class developed in part E, below. You can use any tools you like for your UML diagram. You can even take a picture of a printed copy and turn in. The picture must be legible for grading. The textbook has many examples on proper forms of the UML diagram. a) Design a class named personType, defined in chapter 10 with additional data members to store the person's middle name and the person's gender (a string such as male or female). You can use the existing code in the example and add the new members and the new required member functions b) Design a class named dateType, defined in chapter 11 with an additional data member to store the century. The century value will be a whole number such as 21 for the 21st century. You can use the existing code in the example and add the new member and the new required member functions c) Design a class named billType with data members to store a patient's ID and a patient's hospital charges such as pharmacy charges for medicine, doctor's fee, and room charges. Add appropriate constructors and member functions to initialize, access, and manipulate data members d) Design a class named doctorType inherited from the class personType with an additional member to store a doctor's specialty. Add appropriate constructors and member functions to initialize, access, and manipulate data members e) Design a class named patientType inherited from the class personType with additional data members to store a patient's ID, age, date of birth, attending physician's name, the date when the patient was admitted to the hospital, and the date when the patient was dismissed from the hospital. IMPORTANT NOTE: use the class dateType to store the date of birth, admit date, discharge date (dMonth, dDay, dYear, dCentury). Use the class doctorType to store the attending physician's name. Add appropriate constructors and member functions to initialize, access, and manipulate data members Your main program file must have code to properly test all your classes by creating various objects using the different constructors. I also need you to show the definition and use of an array of patients using the patientType class. Your testing must be complete. For example, one should be able to enter data for a set of patients and be able to see the results outputted to the screen. Avoid minimal testing of your code. The program must also have some way of processing input as you test vour code NOTE: please READ>>For these exercises, create header files and implementation files. Make sure to turn in all files, so I can compile and run on my system. Compress all files and submit as one compressed file. It's best if you create different folders for each question and then compress all folders into one compressed file to submit. We like to computerize the billing system of a hospital. Turn in a UML diagram for the patientType class developed in part E, below. You can use any tools you like for your UML diagram. You can even take a picture of a printed copy and turn in. The picture must be legible for grading. The textbook has many examples on proper forms of the UML diagram. a) Design a class named personType, defined in chapter 10 with additional data members to store the person's middle name and the person's gender (a string such as male or female). You can use the existing code in the example and add the new members and the new required member functions b) Design a class named dateType, defined in chapter 11 with an additional data member to store the century. The century value will be a whole number such as 21 for the 21st century. You can use the existing code in the example and add the new member and the new required member functions c) Design a class named billType with data members to store a patient's ID and a patient's hospital charges such as pharmacy charges for medicine, doctor's fee, and room charges. Add appropriate constructors and member functions to initialize, access, and manipulate data members d) Design a class named doctorType inherited from the class personType with an additional member to store a doctor's specialty. Add appropriate constructors and member functions to initialize, access, and manipulate data members e) Design a class named patientType inherited from the class personType with additional data members to store a patient's ID, age, date of birth, attending physician's name, the date when the patient was admitted to the hospital, and the date when the patient was dismissed from the hospital. IMPORTANT NOTE: use the class dateType to store the date of birth, admit date, discharge date (dMonth, dDay, dYear, dCentury). Use the class doctorType to store the attending physician's name. Add appropriate constructors and member functions to initialize, access, and manipulate data members Your main program file must have code to properly test all your classes by creating various objects using the different constructors. I also need you to show the definition and use of an array of patients using the patientType class. Your testing must be complete. For example, one should be able to enter data for a set of patients and be able to see the results outputted to the screen. Avoid minimal testing of your code. The program must also have some way of processing input as you test vour codeStep 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