Emergency room program

    Download the complete emergency room program and add the followin" rel="nofollow">ing features to it:1. The size of the patient list is calculated when it is prin" rel="nofollow">inted. But there may be occasions where you need the size for somethin" rel="nofollow">ing else, such as to track how many people are waitin" rel="nofollow">ing throughout a day. Add a size in" rel="nofollow">instance variable that is updated each time the size of the list changes, and a size() getter method that returns its value (do not recalculate the size each time the method is called). Replace the calculation in" rel="nofollow">in prin" rel="nofollow">int() with this in" rel="nofollow">instance variable to test your work.2. The patient list is ordered in" rel="nofollow">in reverse order of arrival. It would be nice if it were stored in" rel="nofollow">in a more meanin" rel="nofollow">ingful order. Modify the add method so that new patients are stored in" rel="nofollow">in the list first in" rel="nofollow">in order of severity (highest to lowest), and for those with the same severity, in" rel="nofollow">in in" rel="nofollow">increasin" rel="nofollow">ing order of arrival time. You will need to add a new method to Patient.