In this project, you will develop Mobile surgery software. In this project, you are required to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
In this project, you will develop Mobile surgery software. In this project, you are required to develop the following classes: 1. Interface Nameable Create an interface Nameable that has four methods setFirstName, getFirstName, setLastName and getLastName. 2. Class Person the class Person implements interface Nameable. Ensure all the methods in Nameable are implemented in Person class. In addition, Class Person has first name, last name, age and national ID as its attributes. Give your class a full argument constructor that initializes all attributes. Add the necessary setters and getters, in addition to a toString() method to print all the person details. 3. Class Date Class Date that has day, month and year as attributes. Give your class a full constructor that initializes all attributes. Add the necessary setters and getters in addition to a toString() method. 4. Class Patient Derive Patient from the class Person. A Patient record has the insurance coverage state (use the type of Boolean: True for full or false for partial coverage); and count to track patient total. This class should implement the Comparable interface, and the compare To() method should be overridden to order objects based on the patients ages. In addition, the record should have the patient first name, last name, age and national ID (defined in the class person). Give your class a full constructor that initializes all attributes. Make sure that the person constructor will be invoked in the patient constructor. Add the necessary setters and getter methods in addition to a toString() method. 5. Class Doctor Doctor record has the Doctor's first name, last name, age and national ID (defined in the class person), a specialty as a string (for example Neurological, Ophthalmic, Oral and Maxillofacial, Orthopedic, Pediatric Surgery and so on). Use Comparator interface to make this class comparable based on two comparators: specialty and national ID. Give your class a full constructor that initializes all attributes. Make sure that the person constructor will be invoked in the Doctor constructor. Add the necessary setters and getter methods in addition to a toString() method. 6. Class Surgery Surgery class will contain doctor object, a date object as surgery date, surgery name, room number, surgery duration as string and counter to track surgery total. Give your class a full constructor that initializes all attributes. Add the necessary setters and getter methods in addition to a toString() method. This class should implement the Comparable interface, and the compareTo() method should be overridden to order objects based on surgery duration. Main Program for testing Write a menu-driven program to implement the Application. The menu includes the following: Hint: use switch Statement to implement this menu. 1. Add a new Doctor. The program will prompt the user to enter the fields for the new Doctor and will add it to DocList(Array List), which will be used to store Doctor objects. 2. Display all Doctors using foreach. 3. Add a new Patient. The program will prompt the user to enter the fields of the new Patient and will add it to PatientList (LinkedList). Where PatientList will be used to store Patient objects. 4. Display all Patients using iterator 5. Add a new Surgery Object. Create a priority queue called SurList and add surgery objects to it. 6. Display Surgery data. Don't forget to check for conflicts in the doctor schedule. If the same doctor at the same date has two surgeries, raise a message. Then, Assign the surgery to another doctor. please apply all requeirments 7. Sort Patients 8. Sort Doctors 9. Sort Surgeries. 10. Store Doctor objects in a file. Write the contents of the DocList to a file called Doctorinfo.txt. 11. Store Patient objects in a file. Write the contents of the PatientList to a file called Patientinfo.txt. 12. Exit. The program should handle special cases and incorrect input and terminate safely. In this project, you will develop Mobile surgery software. In this project, you are required to develop the following classes: 1. Interface Nameable Create an interface Nameable that has four methods setFirstName, getFirstName, setLastName and getLastName. 2. Class Person the class Person implements interface Nameable. Ensure all the methods in Nameable are implemented in Person class. In addition, Class Person has first name, last name, age and national ID as its attributes. Give your class a full argument constructor that initializes all attributes. Add the necessary setters and getters, in addition to a toString() method to print all the person details. 3. Class Date Class Date that has day, month and year as attributes. Give your class a full constructor that initializes all attributes. Add the necessary setters and getters in addition to a toString() method. 4. Class Patient Derive Patient from the class Person. A Patient record has the insurance coverage state (use the type of Boolean: True for full or false for partial coverage); and count to track patient total. This class should implement the Comparable interface, and the compare To() method should be overridden to order objects based on the patients ages. In addition, the record should have the patient first name, last name, age and national ID (defined in the class person). Give your class a full constructor that initializes all attributes. Make sure that the person constructor will be invoked in the patient constructor. Add the necessary setters and getter methods in addition to a toString() method. 5. Class Doctor Doctor record has the Doctor's first name, last name, age and national ID (defined in the class person), a specialty as a string (for example Neurological, Ophthalmic, Oral and Maxillofacial, Orthopedic, Pediatric Surgery and so on). Use Comparator interface to make this class comparable based on two comparators: specialty and national ID. Give your class a full constructor that initializes all attributes. Make sure that the person constructor will be invoked in the Doctor constructor. Add the necessary setters and getter methods in addition to a toString() method. 6. Class Surgery Surgery class will contain doctor object, a date object as surgery date, surgery name, room number, surgery duration as string and counter to track surgery total. Give your class a full constructor that initializes all attributes. Add the necessary setters and getter methods in addition to a toString() method. This class should implement the Comparable interface, and the compareTo() method should be overridden to order objects based on surgery duration. In this project, you will develop Mobile surgery software. In this project, you are required to develop the following classes: 1. Interface Nameable Create an interface Nameable that has four methods setFirstName, getFirstName, setLastName and getLastName. 2. Class Person the class Person implements interface Nameable. Ensure all the methods in Nameable are implemented in Person class. In addition, Class Person has first name, last name, age and national ID as its attributes. Give your class a full argument constructor that initializes all attributes. Add the necessary setters and getters, in addition to a toString() method to print all the person details. 3. Class Date Class Date that has day, month and year as attributes. Give your class a full constructor that initializes all attributes. Add the necessary setters and getters in addition to a toString() method. 4. Class Patient Derive Patient from the class Person. A Patient record has the insurance coverage state (use the type of Boolean: True for full or false for partial coverage); and count to track patient total. This class should implement the Comparable interface, and the compare To() method should be overridden to order objects based on the patients ages. In addition, the record should have the patient first name, last name, age and national ID (defined in the class person). Give your class a full constructor that initializes all attributes. Make sure that the person constructor will be invoked in the patient constructor. Add the necessary setters and getter methods in addition to a toString() method. 5. Class Doctor Doctor record has the Doctor's first name, last name, age and national ID (defined in the class person), a specialty as a string (for example Neurological, Ophthalmic, Oral and Maxillofacial, Orthopedic, Pediatric Surgery and so on). Use Comparator interface to make this class comparable based on two comparators: specialty and national ID. Give your class a full constructor that initializes all attributes. Make sure that the person constructor will be invoked in the Doctor constructor. Add the necessary setters and getter methods in addition to a toString() method. 6. Class Surgery Surgery class will contain doctor object, a date object as surgery date, surgery name, room number, surgery duration as string and counter to track surgery total. Give your class a full constructor that initializes all attributes. Add the necessary setters and getter methods in addition to a toString() method. This class should implement the Comparable interface, and the compareTo() method should be overridden to order objects based on surgery duration. Main Program for testing Write a menu-driven program to implement the Application. The menu includes the following: Hint: use switch Statement to implement this menu. 1. Add a new Doctor. The program will prompt the user to enter the fields for the new Doctor and will add it to DocList(Array List), which will be used to store Doctor objects. 2. Display all Doctors using foreach. 3. Add a new Patient. The program will prompt the user to enter the fields of the new Patient and will add it to PatientList (LinkedList). Where PatientList will be used to store Patient objects. 4. Display all Patients using iterator 5. Add a new Surgery Object. Create a priority queue called SurList and add surgery objects to it. 6. Display Surgery data. Don't forget to check for conflicts in the doctor schedule. If the same doctor at the same date has two surgeries, raise a message. Then, Assign the surgery to another doctor. please apply all requeirments 7. Sort Patients 8. Sort Doctors 9. Sort Surgeries. 10. Store Doctor objects in a file. Write the contents of the DocList to a file called Doctorinfo.txt. 11. Store Patient objects in a file. Write the contents of the PatientList to a file called Patientinfo.txt. 12. Exit. The program should handle special cases and incorrect input and terminate safely. Main Program for testing Write a menu-driven program to implement the Application. The menu includes the following: Hint: use switch Statement to implement this menu. 1. Add a new Doctor. The program will prompt the user to enter the fields for the new Doctor and will add it to DocList(Array List), which will be used to store Doctor objects. 2. Display all Doctors using foreach. 3. Add a new Patient. The program will prompt the user to enter the fields of the new Patient and will add it to PatientList (LinkedList). Where PatientList will be used to store Patient objects. 4. Display all Patients using iterator 5. Add a new Surgery Object. Create a priority queue called SurList and add surgery objects to it. 6. Display Surgery data. Don't forget to check for conflicts in the doctor schedule. If the same doctor at the same date has two surgeries, raise a message. Then, Assign the surgery to another doctor. please apply all requeirments 7. Sort Patients 8. Sort Doctors 9. Sort Surgeries. 10. Store Doctor objects in a file. Write the contents of the DocList to a file called Doctorinfo.txt. 11. Store Patient objects in a file. Write the contents of the PatientList to a file called Patientinfo.txt. 12. Exit. The program should handle special cases and incorrect input and terminate safely.
Expert Answer:
Related Book For
Advanced Accounting
ISBN: 978-0077431808
10th edition
Authors: Joe Hoyle, Thomas Schaefer, Timothy Doupnik
Posted Date:
Students also viewed these programming questions
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
Using the adjustment data listed in P3-2 for San Mateo Health Care, indicate the effects of each adjustment on the liquidity metric Quick Assets and profitability metric Net Income - Accrual Basis....
-
Finerly Corporation sells cosmetics through a network of independent distributors. Finerly shipped cosmetics to its distributors and is considering whether it should record $300,000 of revenue upon...
-
A UK company exports goods to Norway ( non - EU ) . Calculate the VAT implications and procedures for reclaiming VAT paid on exported goods valued at 5 0 0 , 0 0 0 .
-
What do closing entries accomplish? a. Transfer revenues, expenses, and dividends to retained earnings b. Zero out the revenues, expenses, and dividends to prepare them for the next period C. Bring...
-
Winnebago Industries, Inc. is a leading manufacturer of motor homes. Winnebago reported ending inventory at August 25, 2007, of $101,208,000 under the LIFO inventory method. In the notes to its...
-
Protein powder as a nutritional supplement is very popular among fitness seekers. Please do a competition analysis of all the current brands in the Indian market and identify the opportunities for a...
-
A national catalog and Internet retailer has three warehouses and three major distribution centers located around the country. Normally, items are shipped directly from the warehouses to the...
-
A young's double-slit experiment is performed with green- blue argon light with =515 nm, the slit separation is 0.4mm . (a) At what angle is the 2 nd order located? (b) If the slit to screen...
-
On June 30, 2024, Georgia-Atlantic, Incorporated leased warehouse equipment from Builders, Incorporated. The lease agreement calls for Georgia-Atlantic to make semiannual lease payments of $562,907...
-
Assume that Oracle expects to receive S$250,000,000 in one year. The existing spot rate of the Singapore dollar is $.74. The one-year forward rate of the Singapore dollar is $.76. Oracle created the...
-
If Sara\'s total consumption is $ 1 , 5 0 0 a month, the fraction of her income that she consumes is 6 0 % , and her income is $ 2 , 0 0 0 , the amount of money she consumes when her income is zero...
-
A company establishes a sinking fund for upgrading office equipment with monthly payments into an account paying 4.4% compounded monthly. What monthly deposit should be made in order to have $90,000...
-
On January 2, 2021, Athol Company bought a machine for use in operations. The machine has an estimated useful life of eight years and an estimated residual value of $1,600. The company provided the...
-
43) A decrease in the overall price level is known as A) recession. C) deflation. 44) Rapid increases in the price level during periods of recession or high unemployment are known as A) stagnation....
-
What impact has the Internet had on the globalization of small firms? How do you think small companies will use the Internet for business in the future?
-
In accounting for an estate or trust, how is the distinction between principal and income determined?
-
Under normal conditions, how does a reorganization plan become effective?
-
A local partnership has only two assets (cash of $10,000 and land with a cost of $35,000). All liabilities have been paid and the following capital balances are currently being recorded. The partners...
-
Figure 2.82 shows a metal block supported on two identical cylindrical rollers rotating in opposite directions at the same angular speed. When the center of gravity of the block is initially...
-
If two identical springs of stiffness \(k\) each are attached to the metal block of Problem 2.41 as shown in Fig. 2.83, determine the coefficient of friction between the block and the rollers. Data...
-
Draw the free-body diagram and derive the equation of motion using Newton's second law of motion for each of the systems shown in Figs. 2.85. 4r k 00000 -Pulley, mass moment of incrtia Jo m 1444 x(t)...
Study smarter with the SolutionInn App