Question
Triage is the medical practice of determining the severity and urgency of conditions to determine the order a large number of patients should be treated
Triage is the medical practice of determining the severity and urgency of conditions to determine the
order a large number of patients should be treated in. This is an important and challenging problem that
can be the dierence between life and death. Your task is to create a program that helps with the triage
problem. https://s3.us-east-1.amazonaws.com/blackboard.learn.xythos.prod/57ad81e32112c/1091644?response-content-disposition=inline%3B%20filename%2A%3DUTF-8%27%27patient_list.txt&response-content-type=text%2Fplain&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20191111T011249Z&X-Amz-SignedHeaders=host&X-Amz-Expires=21600&X-Amz-Credential=AKIAIL7WQYDOOHAZJGWQ%2F20191111%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=e31160d5bf5580befef8c2178a9ba3763e3776f1126361379c0cef121d69d99e
(that's the list of names) Each line contains the patient's rst and last name and their condition.
Their condition is listed as "Critical", "Serious", or "Fair". The names appear in the list in the order that
they arrived.
4 files, One contains the list of all the patients in critical condition, one contains
the list of all patients in serious condition, and one contains the list of all the patients in fair condition. Each
of these les should have the patients listed in the order they arrived. The le names should be clear so that
the hospital knows what each le contains. Also, each le should have a header line, stating the condition of
the patients. The forth le should contain summary statistics, that gives the percentage of critical, serious,
and fair patients, as well as the total number of patients waiting to be treated. These numbers should be
clearly labelled.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started