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
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.

Short Answer7 MarksPremium
33 Uses97 Views2 Likes