Login or Create an Account to view the mark scheme, comment, and add to a test
A hospital has devised a system to prioritise patients based on how many days it has been since symptoms of illness were first exhibited.
When a patient is admitted to the hospital, both their name and days since infected are added to collection called PATIENTS (a name is never added without a corresponding number of days and visa versa).
The collection PATIENTS may be passed from another part of the system in such a way that the tracking pointer may not begin at the head.
For example, in the collection below, Lisa was the first patient to exhibit symptoms 13 days ago.
![Question Image](https://res.cloudinary.com/n7-education/image/upload/v1637879706/user-content/261b3d92-2258-47f6-9232-e6ef72154f43/e472658f-6c04-46ec-8cbc-bf5a1cff9ea8.png)
Write efficient pseudocode to read through the collection PATIENTS and add the names of those patients who have been ill for more than 10 days to an array called HIGH_RISK. Also add patients who have been ill for 10 days or less to an array called LOW_RISK. Both LOW_RISK and HIGH_RISK arrays have a length of 50.
[7]Short Answer7 MarksPremium
37 Uses100 Views2 Likes