CS242 - Term Project PDF
CS242 - Term Project PDF
Overview
Healthcare providers need top-notch pharmacy information systems to safely deliver
medications. For your hospital or group practice to keep patients safe and well
managed, so you need to implement a simple Pharmacy System that serve Patients
and carefully manage the Prescriptions and Medication system.
To do that, you have to implement the appropriate structure for the following:
Page 1 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department
Task #1:
Question 1: Answer the following questions:
1. Which best data structure should be used in order to store patients’ prescription?
A. Singly linked list
B. Stack
C. Queue
D. Binary search tree
2. Which best data structure should be used in order to process the patients'
prescriptions?
A. Singly linked list
B. Stack
C. Queue
D. Binary search tree
3. Which best data structure should be used in order to store medicines?
A. Singly linked list
B. Stack
C. Queue
D. Binary search tree
• Prescriptions
Each prescription is for one medicine and contains the following information: patient
id, medicine name, number of boxes prescribed and dosage.
• Patients
For each patient name, patient id and a list of prescriptions.
• Medications
For each medicine, we need to store the medicine id, name, type, location in the
pharmacy, the number of boxes available in stock.
Page 2 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department
Task #2:
By using appropriate ADTs, design and implement the appropriate classes along with
their essential operations to complete the requirements of project.
Note:
• Use a driven menu to display the above requirements properly.
• Use the following code for main method.
int choice = 0;
do {
System.out.println("1- Medicines Management");
System.out.println("2- Patient registration");
System.out.println("3- Prescription Issuing");
System.out.println("4- Prescription Processing");
System.out.println("5- Exit");
choice = input.nextInt();
switch (choice) {
case 1:
int S=0;
do{
System.out.println("++++++++++ Medicines
Management++++++++++ ");
System.out.println("1- Add medicine");
System.out.println("2- Delete medicine");
System.out.println("3- Search for specific medicine by
name");
System.out.println("4- Back to main menu");
S=input.nextInt();
Page 3 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department
switch (S)
{
case 1:
// 1. Adding medicine.
break;
case 2:
// 2. Deleting medicine.
break;
case 3:
//3. Searching for medicine by its name.
break;
}
}while(S!=4);
break;
case 2:
break;
case 3:
break;
case 4:
//8. Serving patient (removing patient from
waiting list and reducing the number of medicines).
// Note: you have to update medicine class to add
method that reduce the number of medicines.
break;
}
} while (choice != 5);
}
Page 4 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506
Al Imam Mohammad Ibn Saud Islamic University
College of Computer and Information Sciences
Computer Science Department
Project Requirements:
• Design the system considering the description provided previously.
• Implement and test your code and make sure that it is error free and can perform all tasks
correctly.
• You can solve this project as a group of two students, but the evaluation will be individual.
• Deadline: Wednesday 8-4-2020.
Submission:
• You should submit your folder as this naming format:
YourName_UniversityID_SectionNumber_LabProject
Example:
AliSaad_430000000_171_LabProject
Page 5 of 5
Imam University | CCIS | Vice Deanery of Development and Quality
Doc. No. 003-01-20140506