There is a pharmacy that is filling over 300
prescriptions per day. The pharmacy currently operates on a first
come first serve basis, which is problematic for people who have
more urgent medications. The pharmacist needs an algorithm that can
remedy this issue.
Developed a program that will use a few key variables
(condition/disease, medication type, age) to determine the order of
the priority of the prescription’s refill. This way patients that
need their medications more (such as an antibiotic or pain
medication) will be able to get them, while those that do not need
it as much (such as a multivitamin) can be pushed off for
later.
Conditions:
Diabetic (5)
Flu/Pain (4)
Infections (3)
Cold (2)
Heartburn (1)
Medication Type:
Controlled Substance (6)
Insulin (5)
Non Steroidal Anti Inflammatory Drugs (NSAID)
(4)
Antibiotics (3)
Antihistamine (2)
Antacid (1)
Create a JAVA Program using the required data structures
(listed below). Use user input for a total of 5 patients. The user
has to pick which condition, medication type and age. Using the
variables Conditions/Disease and Medication Type (listed above),
create a point system in which the most urgent medication types and
conditions are prioritized. For example, if the patient has Cold
this will equate to 2 points and the patient’s medication type is
Antihistamine, this will equate to an additional 2 points. Finally
if the patient is 73 years old this will equate to 73 points. This
should iterate for 5 patients and whichever patient has the highest
number of points will be prioritized first. The least number of
points will be prioritized last.
must use an Array in one of its classes
must use a Linked List in one of its
classes
must use a Stack in one of its classes
must use a Queue in one of its classes
must use a Binary Tree or Binary Tree Search in one of
its classes
must use a Bubble Sort in one of its
classes
There is a pharmacy that is filling over 300 prescriptions per day. The pharmacy currently operates on a first come firs
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
There is a pharmacy that is filling over 300 prescriptions per day. The pharmacy currently operates on a first come firs
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!