Medicare System Application: Java-Based Appointment System

Verified

Added on  2025/06/20

|24
|1132
|478
AI Summary
Desklib provides solved assignments and past papers to help students succeed.
Document Page
OBJECT ORIENTED PROGRAMMING
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Table of Contents
Introduction.................................................................................................................................................3
Design.........................................................................................................................................................4
Development...............................................................................................................................................9
Testing.......................................................................................................................................................10
First Choice...........................................................................................................................................10
Second Choice.......................................................................................................................................11
Third Choice..........................................................................................................................................12
Fourth Choice........................................................................................................................................13
Fifth Choice...........................................................................................................................................14
Sixth Choice..........................................................................................................................................15
Seventh Choice......................................................................................................................................16
Eighth Choice........................................................................................................................................17
Ninth Choice..........................................................................................................................................18
Tenth Choice.........................................................................................................................................19
Eleventh Choice....................................................................................................................................20
Conclusion.................................................................................................................................................21
References.................................................................................................................................................22
Appendices................................................................................................................................................23
2
Document Page
Table of Figures
Figure 1 UML Diagram...............................................................................................................................3
Figure 2 Medicaremain Class......................................................................................................................3
Figure 3 Medicarepatients Class..................................................................................................................4
Figure 4 Medicaredoctors Class..................................................................................................................5
Figure 5 Medicareappointments Class.........................................................................................................6
Figure 6 Currentdate Class..........................................................................................................................7
Figure 7 The main menu..............................................................................................................................8
Figure 8 Code for main menu......................................................................................................................8
Figure 9 Output of the first choice...............................................................................................................9
Figure 10 Code for the first choice..............................................................................................................9
Figure 11 Output ofthe second choice.......................................................................................................10
Figure 12 Code for the second choice........................................................................................................10
Figure 13 Output of the third choice..........................................................................................................11
Figure 14 Code for the third choice...........................................................................................................11
Figure 15 Output of the fourth choice........................................................................................................12
Figure 16 Code for the fourth choice.........................................................................................................12
Figure 17 Output of the fifth choice..........................................................................................................13
Figure 18 Code for fifth choice.................................................................................................................13
Figure 19 Output of the sixth choice..........................................................................................................14
Figure 20 Code for the sixth choice...........................................................................................................14
Figure 21 Output of the seventh choice.....................................................................................................15
Figure 22 Code for the seventh choice......................................................................................................15
Figure 23 Output of eighth choice.............................................................................................................16
Figure 24 Code for the eighth choice.........................................................................................................16
Figure 25 Output of ninth choice part one.................................................................................................17
Figure 26 Output of ninth choice part two.................................................................................................17
Figure 27 Code for ninth choice................................................................................................................17
Figure 28 Output of the tenth choice.........................................................................................................18
Figure 29 Code for ninth choice................................................................................................................18
Figure 30 Output of the eleventh choice....................................................................................................19
Figure 31 Code for the eleventh choice.....................................................................................................19
3
Document Page
Introduction
The Medicare System program is made on the Java stage. The application is reassure based. It is
utilized as a database to enroll and store patient subtleties. The patients will have ease for
booking meetings with the specialists they need to get inspected from. The patients get the
opportunity to pick the date and day of the arrangement. This gives a comfort highlight to the
patients. The application will likewise be helpful to the organization staff as one can refresh,
erase or drop any reserving and can even erase a patient record.
4
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Design
The structure recorded beneath speaks to the class diagram which comes under the UML
diagram (Ceta, 2019) for the Medicare System application. This is the visual portrayal of the
considerable number of strategies and every one of the factors announced in every single class.
The application comprises of 5 classes.
Figure 1 UML Diagram
Medicaremain
The figure below represents the components that are included in the main class file of the
application. This class plays the role of the visualize interface for the user by which a user can
choose whatever he/she wants to do.
Figure 2 Medicaremain Class
5
Document Page
Medicarepatients Class
The figure below represents the components in the Medicarepatients class which is responsible
for storing and manipulating the details of the patients. This class includes various details like the
name, date of birth, number, address and email address of the patient. All the patients are unique
as every patient is assigned with a unique ID number.
Figure 3 Medicarepatients Class
6
Document Page
Medicaredoctors Class
This is the class which uses the TreeMap (GeeksforGeeks, 2019) class of the java.util package of
Java platform. This class consists of the details of the doctor.
Figure 4 Medicaredoctors Class
7
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Medicareappointments Class
The components of the class are listed in the figure below. This class has multiple functions
which include the data of patient appointments with the doctors. This class is responsible for
storing the time and date of the appointments.
Figure 5 Medicareappointments Class
8
Document Page
Currentdate Class
This class is mainly used for the date feature which enables the application to prevent errors like
taking appointments in the backdate. This class updates the date with the current date and makes
the application more efficient and productive.
Figure 6 Currentdate Class
9
Document Page
Development
The application is created by the structure plan. The application utilizes an ArrayList
(CalliCoder, 2019). It stores the data of every patient and the bookings with their respective
doctors. The structure depends on the article arranged worldview and ideas of Java. The figure
beneath is the fundamental interface of the application.
Figure 7 The main menu
Below is the code for displaying the menu to the user.
Figure 8 Code for main menu
10
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Testing
The figures attached underneath are proof that the application is effectively running and the user
using this application is getting the right yield of each decision.
First Choice
Figure 9 Output of the first choice
Figure 10 Code for the first choice
11
Document Page
Second Choice
Figure 11 Output ofthe second choice
Figure 12 Code for the second choice
12
chevron_up_icon
1 out of 24
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]