Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A doctor sees patients in her practice. When a patient comes to the practice, th

ID: 3707039 • Letter: A

Question

A doctor sees patients in her practice. When a patient comes to the practice, the doctor performs one or more procedures on the patient. Each procedure performed has a description and a standard fee. As patients leave, they receive a statement that shows their name and address, as well as the procedures that were performed, and the total charge for the procedures. answer in words no code

1 After your analysis, what classes would you propose for this system? Why?

2 For each class, what are the data members and their data types that would be required to make the solution work?

3 For each class, what are the member functions, their return types and parameter lists(if needed) would be required to make the solution work?

Explanation / Answer

Class Person name(String) and address(String) member variables. Constructors and getters are needed.

Classes Doctor and Patient inheriting from Person , Doctor having DoctorID(int) and Patient having PatientID(int) as member variables. Constructors and getters are needed.

A Procedure Class with the name(String) and the cost(Double) of the procedure as member variables. Constructor and Getters required.

A Statement   class with a member variable of type Doctor ,Person and and ArrayList of type Procedure. A constuctor method accepting Doctor , Patient and ArrayList<Procedure> as arguments. And a toString method to return the Statement as a String

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote