4. In a hospital ward allocation management system, patients will be arranged to different types, that is, general ward and I

Please finish this question in C language programming

Thank you so much!

4. In a hospital ward allocation management system, patients will be arranged to different types, that is, general ward and ICU (Intensive Care Unit) based on the patient health condition indicator, which is from 0 to 10. If the indicator is bigger than setup threshold value, the patient will be move to ICU. Assume that each patient has three-digits ID. Write a program to print all patient IDs and condition indicators in ICU. Inputs from keyboard: Enter how many patients currently there are, and threshold value of ICU: 10 7.55 Enter each patient’s ID and condition indicator: 006 6.5 005 8.0 004 3.5 0098.5 011 7.0 043 9.5 003 5.0 103 6.0 112 4.0 118 9.0 Outputs: 043 9.5 118 9.0 0098.5 005 8.0



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *