Question
Software Engineering: write the program in JAVA or C++ The Billing system of a hospital A very interesting issue in a hospital for design and
Software Engineering: write the program in JAVA or C++
The Billing system of a hospital
A very interesting issue in a hospital for design and implement is the billing system. Patients are coming in the hospital, meet the doctors, and make a therapy etc. At the end the patient pay the bill with all the expenses that he did in the hospital.
The goal:
We have to implement the billing system considering all the expenses that a patient had for all the days that he was in the hospital.
How the system works:
When a patient comes to the hospital, a doctor will provide the necessities for his therapy. A patient has an ID and the hospital charges him with pharmacy needs, the doctors fee, and the room charges. Finally the patient pay for all the expences.
Design concepts:
For the design needs you need to define the parts of the application and to create the necessary classes and their methods. You have to find their exactly classes and method that you will map later to code.
Classes:
1. Doctor: (inherited from class Person), with the additional data member to store the doctors specialty.
-Add : the methods to initialize, access, and manipulate the data members.
2. Bill: add the data members to store a patients ID and the hospital charges such as: pharmacy charges for medicine, the doctors fee and the room charges.
-Add : the methods to initialize, access, and manipulate the data members.
3. Patient: (inherited from class Person), with the additional data members to store the patint ID, age, date of birth , attending physisan namre, the admitted day in the hospital, the discharged date from the hospital.
-Add : the methods to initialize, access, and manipulate the data members.
4. Date: to store the date of birth, admit day, discharge date.
5. Main: You will set:
-Patient ID, Patient First Name, Patient Last Name
-Doctor first name, Doctor last name
-Doctor specialty
-the admission date, the discharge date
-the pharmacy charges, room rent, doctor fee
Print: the bill with all the previous items.
You can also make another design without the Date class by including the Dates data into another class
What is asking for:
1. The UML case diagram and the class diagram.
2. The class diagram (with attributes and operations and possibly any new class that is needed) Hint: The class diagram should be very close to your implementation
3. make test programs for the base class.
4. the demo program have to provide the printing of a bill with all the items as are referred in the main class.
SW:
The Billing system of a hospital
A very interesting issue in a hospital for design and implement is the billing system. Patients are coming in the hospital, meet the doctors, and make a therapy etc. At the end the patient pay the bill with all the expenses that he did in the hospital.
The goal:
We have to implement the billing system considering all the expenses that a patient had for all the days that he was in the hospital.
How the system works:
When a patient comes to the hospital, a doctor will provide the necessities for his therapy. A patient has an ID and the hospital charges him with pharmacy needs, the doctors fee, and the room charges. Finally the patient pay for all the expences.
Design concepts:
For the design needs you need to define the parts of the application and to create the necessary classes and their methods. You have to find their exactly classes and method that you will map later to code.
Classes:
1. Doctor: (inherited from class Person), with the additional data member to store the doctors specialty.
-Add : the methods to initialize, access, and manipulate the data members.
2. Bill: add the data members to store a patients ID and the hospital charges such as: pharmacy charges for medicine, the doctors fee and the room charges.
-Add : the methods to initialize, access, and manipulate the data members.
3. Patient: (inherited from class Person), with the additional data members to store the patint ID, age, date of birth , attending physisan namre, the admitted day in the hospital, the discharged date from the hospital.
-Add : the methods to initialize, access, and manipulate the data members.
4. Date: to store the date of birth, admit day, discharge date.
5. Main: You will set:
-Patient ID, Patient First Name, Patient Last Name
-Doctor first name, Doctor last name
-Doctor specialty
-the admission date, the discharge date
-the pharmacy charges, room rent, doctor fee
Print: the bill with all the previous items.
You can also make another design without the Date class by including the Dates data into another class
What is asking for:
1. The UML case diagram and the class diagram.
2. The class diagram (with attributes and operations and possibly any new class that is needed) Hint: The class diagram should be very close to your implementation
3. make test programs for the base class.
4. the demo program have to provide the printing of a bill with all the items as are referred in the main class.
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