Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Content of commands.txt is written below (can't upload the text file here) STARTUP DISPLAY_ALL_Info Content of intialPatientInformation.txt is written below (can't upload the text file

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Content of "commands.txt" is written below (can't upload the text file here)

STARTUP DISPLAY_ALL_Info

Content of "intialPatientInformation.txt" is written below (can't upload the text file here)

7 1172 Alaa Mohammed 3034 hand inprocess 3356 Sultan Khalid 2034 Back Done 2244 Raed Ali 1100 leg inprocess 3312 Ali Saber 4987 Arm inprocess 1174 fahad Ahmed 1023 back Done 4401 Mohammed Anas 1100 leg inprocess

Content of "intialTerpaistInformation.txt" is written below (can't upload the text file here)

7 1100 Ali Abdullah leg 2 NotAvailable 1023 Nadia Omar Back 3 Available 2034 Noha Ali Back 1 Avalabile 3034 Sad hand 2 Available 1237 Ahmed Ali leg 3 Available 4987 Walied Omar Arm 1 NotAvaliable

the output of the program must be like this:

Number of patients are 7 PatientID Name TherapistID Diagnostic Status 1172 Alaa Mohammed 3034 hand inprocess 3356 Sultan Khalid 2034 Back Done 2244 Raed Ali 1100 leg inprocess 3312 Ali Saber 4987 Arm inprocess 1174 Fahad Ahmed 1023 back Done 4401 Mohammed Anas 1100 leg inprocess ....................................................................... Number of Therapists are 7 TerapistID Name Specialist Max Patients Status 1100 Ali Abdullah leg 2 NotAvailable 1023 Nadia Omar Back 3 Available 2034 Noha Ali Back 1 Avalabile 3034 Sad hand 2 Available 1237 Ahmed Ali leg 3 Available 4987 Walied Omar Arm 1 NotAvaliable .........................................................................

please provide the full code of this project with a screenshot that shows the program is running

the code of the project must be in java

please submit the java code for all these classes

Patient.java: This class will be used to create objects of type patient. Each patient object will store the patient id, first name, last name, therapist id, diagnostic, and status.

Patient List.java: All the methods will be implemented in this class.

Therapist.java: This class will be used to create objects of type therapist. Each therapist object will store the therapist id, first name, last name, specialist, maximum number of patients, and status.

TherpaistList.java: All the methods will be implemented in this class.

WaitingList.java: All the methods will be implemented in this class.

MainProgram.java: This is the class that will contain the main.

Program Description: Write a program to distribute patients across the therapist center where each therapist is responsible for a certain number of patients. You are required to write the following methods: - Create an account for each patient using a singly linked list. Each node has the patient's information - Create an account for each therapist using a singly linked list. Each node has the therapist's information Example: based on his diagnostics. If no therapist is available for him (means: reaching the maximum number of patients), add the patient id to the single linked list of waiting patients and indicate in patient records status "waiting".(at the end of the linked list). 2. Write a function to add new therapist information. (at the end of the linked list). 3. Write a function to delete a patient from the linked list based on the patient's id and update the patient's status as a therapist 4. Write a function that assigns a therapist to a patient from the waiting list and updates the therapist's status 5. Write a function that accepts the headP of the list and displays all patients' info in the linked list in a table 6. Write a function that accepts the headT of the list and displays all therapist info in the linked list in a table 7. Write a function that accepts the headW of the list and displays all waiting list info in the linked list in a table The program deals with three files: two input files and one output file. Information on the same line is separated by spaces. The description of these files is as follows: The first input file (intialPatientInformation.txt) contains important information for the system, which includes information about the patients and their details. The information in this file is arranged as follows: - The first line contains the number of patients - The following lines (from lines 2 to 7 ) contain the patient information: patient id, first name, last name, therapist id, diagnostic, and status. The second input file (intialTerpaistInformation.txt) contains important information for the system, which includes information about the therapists and their details. The information in this file is arranged as follows: - The first line contains the number of therapists - The following lines (from lines 2 to 7 ) contain the patient information: therapist id, first name, last name, specialist, maximum number of patients, and status. - The commands for the system are found in the third file, called commands.txt. The commands in this file are as follow: - STARTUP: This command will use the first input file (intialTerpaistInformation.txt) and (intialTerpaistInformation.txt) to initialize the system by creating 2 linked lists equal to the number of patients and therapists specified in the file. Every linked list holds their information. - DISPLAY_ALL_Info: This command will display all patient information and therapist as shown in the ouput.txt file. - The program output should be written to the file name output.txt, which should be similar Implementation For this program, you will create the following classes: - Patient.java: This class will be used to create objects of type patient. Each patient object will store the patient id, first name, last name, therapist id, diagnostic, and status. - Patient List.java: All the methods will be implemented in this class. - Therapist.java: This class will be used to create objects of type therapist. Each therapist object will store the therapist id, first name, last name, specialist, maximum number of patients, and status. - TherpaistList.java: All the methods will be implemented in this class. - WaitingList.java: All the methods will be implemented in this class. - MainProgram.java: This is the class that will contain the main. - The main program has a menu for all the Therapist Management System Add Patient Add Therapist Delete Patient Display Patient List Display Therapist List Display Waiting List Sample Input \& Output File We have provided you with a sample of three input files, and one output file ****RRING *** Your program MUST adhere to the EXACT format shown in the sample output file (spacing capitalization, use of dollar signs, periods, punctuation, etc). The graders will use large input files, resulting in large output files. As such, the graders will use text comparison programs to compare your output to the correct output. If, for example, you have two spaces between in the output when there should be only one space, this will show up as an error even though you may have the program correct. You will get points off if this is the case, which is why this is being explained in detail. The minimum deduction will be 10% of the grade, as the graders will be forced to go to the text editing of your program in order to give you an accurate grade. Again, your output MUST ADHERE EXACTLY to the sample output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Access Patterns Database Interactions In Object Oriented Applications

Authors: Clifton Nock

1st Edition

0321555627, 978-0321555625

More Books

Students also viewed these Databases questions