A hospital has devised a system to prioritise patients based on how many days it has been since they first exhibited symptoms of an illness. When a patient is admitted to the hospital, their name and days since infected are input sequentially into a collection called PATIENTS (both are always added, that is, a name is never added without a corresponding number of days and visa versa). 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 (linked list) PATIENTS and add the names of those patients who have been ill for more than 10 days to an array called HIGH_RISK and those that have been ill for 10 days or less to an array called LOW_RISK. Both arrays have a length of 50.
[6]

Short Answer6 MarksPremium
31 Uses62 Views2 Likes
Login or Create an Account to view the mark scheme, comment, and add to a test