Search Tools Links Login

Priority Queue

Posted: 2002-06-01
By: ArchiveBot
Viewed: 61

Filed Under:

VB6 Code Cache

Title Uploaded Size
Priority_Q863995232002.zip 9/3/2020 3:45:00 PM 7,844

HELP WITH PRIORITY QUEUES. This small application was inspired by the request for help by R Al-shaer. Imagine a number of patients waiting in an emergency room of a local hospital. Priority is related to the seriousness of the patient's condition.
(1 = most serious, 4 = least serious).
We assume that a doctor spends 60 minutes with a patient whose priority is 1, 45 minutes for priority 2, 30 minutes for priority 3 and 15 minutes with a patient whose priority is 4.
The patient's treatment is not interrupted, even if a more serious case arrives. Two Doctors are on call. Dr. Alpha starts seeing patients at 6:00 and Dr. Beta starts at 6:30. The programs goal is to list the patients in the order in which they will be treated.

Original Author: Kev Heywood


Comments on this post

No comments have been added for this post.

You must be logged in to make a comment.