Please read it carefully and write the correct code as required and in Java language

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Please read it carefully and write the correct code as required and in Java language

Post by answerhappygod »

Please read it carefully and write the correct code as required
and in Java language
Please Read It Carefully And Write The Correct Code As Required And In Java Language 1
Please Read It Carefully And Write The Correct Code As Required And In Java Language 1 (90.22 KiB) Viewed 37 times
"Hospital Information System" application Please follow these instructions: • This is a group project. So every group must complete it in their own and by themselves. • Every group could include two students at maximum. • The project must be submitted before the deadline and any late projects will receive ZERO. • Include a PDF document that includes UML class diagrams, assumptions and several screenshots of your Netbeans IDE application as well as the output screenshot results in cases of successes and errors. • Submit your code as.zip compressed file via the online Blackboard system. Name of the compressed file should include your names, student numbers and group numbers. The project description: As a programmer, you have been asked to write a Java console application, using OOP concepts, for a Hospital with the following requirements: • The Hospital has several employees and each one of them has a unique ID (int), first name (string), last name (string), mobile phone number (string), email (string) and salary (double) with suitable data types. • The employees are divided into: Administration staff who have in addition to the previous information their position (string). Doctors who have also a rank (string) and specialty (string). • The Hospital also has a set of patients. Each patient is identified by his/her unique ID (int), first name (string), last name (string), mobile phone number (string), email (string), type (enum with values: A, B or C) and a set of hospital services (Vector or ArrayList of service objects). • The Hospital has a set of services to be provided to the patients. Each service is identified by unique ID (int), name (string) (such as: x-ray, physical therapy, ...etc) and price (double). The patients who are from type A will have a discount 40% of the service price. • Every patient could be treated by one doctor and every doctor could treat zero or more patients . Every patient receives one or more services from the doctor who treats him. • All doctors could provide all possible services.

The project requirements: • You will need to create all the needed Java classes with all the required information. . You have to apply all the OOP (Object Oriented Programming) concepts that we have covered in this module (i.e. abstract classes, interfaces, constructors, inheritance, polymorphism, UML, exception handling and collections). • Include a text file (call it as names.txt) that includes the names of the participating students, their student numbers, group numbers and email addresses (in English). • Include a PDF FILE (name it as project2_report.pdf) that includes several screenshots of your Netbeans IDE application GUI interface as well as the output screenshot results. The document should also include a UML class diagram of all the classes, associations and multiplicity (cardinality) among these classes. Add screenshots of the folder and files structures of the Netbeans project. Provide all assumptions that you have made during design and implementation. • Include the whole Netbeans Java project FOLDER with all source codes. Write as much comments as possible to document your source codes. At the end, you will need to create a testing class (e.g. HospitalSystem.java) with a static main() method with the following requirements: • It must have initial fixed collections of working staff (at least 3 administration staffs and 2 doctors). Use classes constructors to initialize these objects. • The project will start by reading a name from the user. If the name exists in the administration staff collection, the program will continue. If it is not the program will ask for a name again. . The program will print a selection screen where the administrative staff user can choose the operation he/she wants to perform. The selection screen will be repeated after each selection until the staff types the number 9 to exit the program: 1. Add a doctor (by providing all her/his information) 2. Add a service (by providing all its information) 3. Add a patient (by providing all her/his information) including all received services IDs (entered by point 2 above) 4. Print all doctors information 5. Print all patients information 6. Display specific doctor data (by reading doctor ID from the user) 7. Display specific patient data (by reading patient ID from the user) 8. Print a specific patient's bill (by reading the patient ID from the user and then calculating the total price for all services provided for this patient (could be more than one service for each patient and according to patient's type (A or B)) 9. Exit the program (after printing out "Exiting from the program..." message) . You need to create, use and print a custom exception called Duplicate ServiceldException that should be thrown when the administrative user tries to add a new service (i.e. option 2) using existing service ID. The message of the exception should be read as "Invalid service ID. This service ID is already utilized!". Don't handle this exception using try-catch block and add an example of this case in the output screenshots in the report.

Project deliverables • You will need to create all the needed Java classes with all the required information. • Your design of the classes and their relationships to each other is the main point you will be evaluated at • You have to apply the necessary OOP (Object Oriented Programming) and UML concepts that we have covered in this module (i.e. inheritance, polymorphism, interface and collections) • Include a text file (call it as names.txt) that includes the names of the participating students, their student numbers, group numbers and email addresses (in English). • Include a PDF document FILE (name it as project2_report.pdf) that includes several screenshots of your Netbeans IDE application output screenshot results (for possible success, exception and error cases) as well as the UML class diagram of the system. Add screenshots of the folder and files structures of the Netbeans project. Provide all assumptions that you have made during design and implementation. Note: The output screenshots should include details about the group students: IDs, names, Group Numbers and Email Addresses. • Include the whole Netbeans Java project FOLDER with all source codes. Write as much comments as possible to document all your source codes.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply