ITS63304 Object Oriented Programming

Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due

Object Oriented Programming

ITS63304

FINAL EXAMINATION

SEPTEMBER 2024 SEMESTER

MLO 3: Develop appropriate algorithms and programs using problem-solving and object-oriented programming skills for a given scenario.

QUESTION 1:

To streamline the operations and improve patient care, you are hired to develop a hospital management system The system includes core functionalities for managing patient admissions, doctor consultations, pharmacy operations, and billing.

In the expected system, patients can register for appointments, specify their medical concerns, and view doctor availability. Upon admission, patient records are managed, including personal details, medical history, and treatment plans.

The integrated pharmacy allows doctors to prescribe medicines, which are then managed through the system. Pharmacy staff can view medicine stock levels, process prescriptions, and update inventory. The system also supports billing for both hospital services and pharmacy purchases. The system will essentially include:

1.   A  patient  admission module that manages patient  details, admission dates, assigned doctors, and treatment histories.

2.   A pharmacy module to track medicines, their availability, and pricing.

3.   A  reporting  module  to  track  hospital  and  pharmacy  operations,  such  as  admissions,  discharged patients, and medicine stock usage.

In addition to the above system requirements, the implemented system should also be able to perform the below tasks.

1.   In the system, the manager needs to check the treatment histories of all admitted patients. Use a for loop to display the treatment records of each patient. Assume you have an array of 50 patient objects in the hospital.

2.   Patients  want  to  check  the price  details  of  commonly prescribed medicines. The medicines include "Paracetamol: RM 10 per pack", "Amoxicillin: RM 25 per pack", and Cough Syrup: RM 15 per bottle". You are required to use a switch statement to display the price for a selected medicine.

3.   The hospital management wants to enhance patient comfort by customizing the amenities in patient rooms.  For  managing  amenities,  design  a  class  called  AmenityManager with  the  following functionalities:

•    A constructor that initializes the manager with an amenity name and its description.

•    A method named assignAmenityToRoom that links an amenity to a specific room, storing it in the room's amenity list.

•    A  method  named  removeAmenityFromRoom that  unlinks an amenity from a specific room.

•    A  method  named  listAmenitiesPerRoom that  retrieves  and  displays  all  amenities assigned to a given room.

Hints:

•    You can make any logical assumptions if needed, clearly state them in the report.

•    You must use the object-oriented programming approach, for example, classes, objects interaction, encapsulation (access modifiers), and basic programming principles where appropriate.

•    You must create a main class for a demonstration and testing.

•    The developed program/application must be executable.

•    Follow the provided marking rubrics to complete your tasks.

Submission Guidelines:

1. REPORT: You are required to submit a report in PDF format.

a.   The cover page must include your Full Student Name, Student ID, Signature, and marking rubrics.

b.   Briefly describe the overall design of your developed application.

c.   You are required to provide the screenshots of code along with appropriate description.

d.   You are also required to provide the screenshots of output along with appropriate description. At least one of the output screenshots must indicate your Full Name and Student ID.

e.   The number of pages should not exceed 20-25 pages.

2. SOURCE CODE: You are required to submit the source code as a project zip file. The code must include appropriate comments where required.

a.   You are required to use only the concepts that have been covered in the module.

b.   Use of JavaFX is not allowed. You are required to develop a console application.

发表评论

电子邮件地址不会被公开。 必填项已用*标注