Question
Write a java program in (intelliJ) For this project, you will build a hospital interface, where you can: - Login - List patients - Add
Write a java program in (intelliJ)
For this project, you will build a hospital interface, where you can:
- Login - List patients - Add patients - See patient records - Add/remove records for a patient.
You will be reading data from multiple files: - employees.txt will be responsible for managing user login. (file will be provided) - patients.txt will be responsible for managing the list of patients (file will be provided) - Each patient will have their own file with their records.
Suggested way to tackle this homework:
- Start by downloading all the files. - View the files to see all the formats. - Read the employees from employees.txt o Create a new employee for each line. o Add the employees to the employees ArrayList of the hospital. - Read the patients from patients.txt o Create a new patient for each line. o For each patient Read their designated records. For each line, create a record and add it to the records ArrayList. o Add the patient to the patients ArrayList of the hostpital. - At this point, you have a hospital, with employees, patients. - Write down the menu, with the appropriate switch / if/else statement. - List_patients should be straightforward. - View_records, youll need a way to find the patient from the patients array list - Add_record should be straightforward. - Remove_record, youll need a way to find the patient from the patients array list and then find the record from the records array list. - Add_patient. Youll need to add this user to the patients.txt and create a record file for them. Suppose you add Thomas, you will have to create a thomas.txt file to hold their records. - Finally upon program exit (when the user enters 0), write back the data. - Start with the patients, iterate over all the patients and write them down to patients.txt o For each patient, get the records and write it down to the appropriate file. Annes records go in to anne.txt, etc.
Start with the patients, iterate over all the patients and write them down to patients txt o For each patient, get the records and write it down to the appropriate file Anne's records go in to anne.txt, etc. Submission: zip file na LastnameFirstname. For example This zip file should have a HospitalInterface.java, patients.txt, employees.txt, and other .txt files for each patient, and a write up in txt or pdf Include details about your solution, and any challenges you faced
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