Question: you will need to make 3 text file to use them as input files for the program: first file (intialPatientInformation.txt) as image below The first



you will need to make 3 text file to use them as input files for the program:
first file (intialPatientInformation.txt) as image below

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.
second file (intialTerpaistInformation.txt) as image below

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.
third file : commands.txt like the image below

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 output of the program will be printed in a text file and must be like this:

please provide the full code of this project
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.
provide a screenshot to show the program is running
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 7 1172 A aa Mohammed 3034 hand inprocess 3356 Su1tan Kha1id 2034 Back Done 2244 Raed A 1 i 1100 1 1 eg inprocess 3312 A A Saber 4987 Arm inprocess 1174 fahad Ahmed 1023 back Done 4401 Mohammed Anas 1100 leg inprocess 7 1100 A7i Abdu 17 ah 7eg 2 NotAvai7ab 1e 1023 Nadia Omar Back 3 Avai 7ab 1e 2034 Noha A7i Back 1 Ava7abi7e 3034 Sad hand 2 Avaab 7e 1237 Ahmed A 1 i leg 3 Available 4987 Waied Omar Arm 1 NotAvaiable STARTUP DISPLAY_ALL_Info output.txt - Notepad File Edit View Number of patients are 7 Patientid Name Therapistid Diagnostic status 117233562244331211744401A7aaMohammedSu7tanKhaidRaedAiAiSaberFahadAhmedMohammedAnas303420341100498710231100handBack7egArmback7eginprocessDoneinprocessinprocessDoneinprocess Number of Therapists are 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
