Question 1) Do the following Exercises from your textbook: R-4.16 (1 point), R-4
ID: 3544203 • Letter: Q
Question
Question 1) Do the following Exercises from your textbook: R-4.16 (1 point), R-4.17 (1 point), R-4.18 (1 point), and R-4.19 (1 point) and C-4.8 (6 points) . Question 2) Patients, Appointments and Clinic Implement a class called Patients that represents a patient on the University clinic. Each Patients instance should keep track of its name, its address, its medical record number in University clinic. Thus a Patient object has three fields or instance variable: name of type String address of type String MedicalRecordNumber of type int Implement a class called Appointments that represents an appointment on University Clinic. Each Appointments instance should keep track of its appointment number, clinic name, and its date and time. Thus an appointment instance has four fields (instance variables): appointmentNumber of type int clinicName of type String date of type String time of type String Implement a class called UniversityScheduling that represents the clinic Scheduling for an appointment on University Clinic. Each UniversityScheduling instance should keep track of its patient, its appointment, and doctor name. Thus an UniversityScheduling instance has three fields (instance variables): patient of type Patients appoitment of type Appoitments doctorName of type String For the Patients class, implement the following instance methods: public get (accessing) methods and protected set (modifying) methods for the fields (instance variables) a zero-argument constructor (i.e., one that takes no parameters) a constructor that accepts a name, address, and MedicalRecordNumber. a toString method that returns a String representing the Patients objects name, address, and MedicalRecordNumber (e.g., "Saud Khaild, 147 Riyadh, #123456" ) For the Appointments class, implement the following instance methods: public get (accessing) methods and protected set (modifying) methods for the fields (instance variables) a zero-argument constructor (i.e., one that takes no parameters) a constructor that accepts a appointmentNumber, clinicName, data, and time a toString method that returns a String representing the Appointments object. The String should include the the appointmentNumber, clinicName, the date, and the time e.g., " #001, Student Clinic, 01/10//13, 8:50 am" For the UniversityScheduling class, implement the following instance methods: public get (accessing) methods and protected set (modifying) methods for the fields (instance variables) a zero-argument constructor (i.e., one that takes no parameters) a constructor that accepts patient, appointment, and a doctorName a toString method that returns a String representing the UniversityScheduling object. The String should include the patient name, the patient MedicalRecordNumber, the a appointmentNumber, clinicName, the date, the time, and the doctorName . e.g., "Saud Khaild, #123456, #001, Student Clinic, 01/10//13, 8:50 am, Dr. Ahmed" Testing: Be sure to test your code thoroughly. Create a class called Test with several static test methods for testing your Patients, Appointments and , UniversityScheduling objects. Choose meaningful test cases. You are responsible for developing a convincing test plan, i.e., for convincing the TAs that your methods work properly. Here is an example of a test method: public static void test1() { Patients p1; UniversityScheduling scheduleP1; Appointments appointmentP1; p1 = new Patients(); p1.setName("Saud Khalid"); p1.setAddress("147 Riyadh"); p1.MedicalRecordNumber (123456); appointmentP1 = new Appointments(001, "Student Clinic", "01/10/13, 8:50 am"); scheduleP1 = new UniversityScheduling(p1, appointmentP1, Dr. Ahmed); System.out.println(p1); System.out.println(appointmentP1); System.out.println(scheduleP1); } Implementation: , Implement the clinical data using Doubly linked list ( 90 points) You should have all the methods explained in the class and the following additional methods too: 1. DeleteA: to delete a specific appointment. 2. DeleteP: to delete a specific patient. 3. Search: to search about any patient and appointment. 4. Max: to find the name of the Doctor with the maximum number of patients. 5. Print out the contents of the ith node for the Patients and AppointmentsNote: Submit your classes s and their methods along with a copy of the output generated by the testing. Include comments in your code and ensure that all of the output is clearly explained. Testing will be marked!Explanation / Answer
can you please post the question again
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.