Project #4
Emergency Room Efficiency
(Due 27 Mar 06)
UPMC has made an efficiency study of the doctors that work in the emergency rooms of some of its branches. UPMC wants to find out how its doctors compare to each other in terms of efficiency of treating patients who come into the emergency room. For each doctor, 15 patients have been randomly selected from those that the doctor treated over the past month. Each patient was given a difficulty rating (from 1 to 9) based on the nature of the complaint, the nature of the patient, and the "standard" treatment procedures the doctor would be expected to use. The time that it took the doctor to treat each patient is recorded as a matter of routine for every patient; the time is measured in minutes. The information for all of the doctors has been collected in a file named efficiency.txt Each line of the file has the following form:
lastName, firstName rating#1 time#1 rating#2 time#2 rating#3 time#3 . . .
There are fifteen sets of rating-time pairs. The actual contents of the file begin like this
Fishhawk, Skyler 5 44 1 24 4 48 3
36 4 60 3 48 1 20 2 40 5 48 and 6 more
Doonesbury, Mike 1 20 1 20 4 36 2
32 7 60 3 52 9 84 8 68 8 76 and 6 more
Canyon, Steve 1 28 4 44 6
56 7 80 5 76 3 60 1 36 2 52 5 60 and
6 more
You are to write a program that does the following:
The efficiency.txt file can be found on the I: drive at I:\jlwolfe\110\efficiency.txt or on the P: drive at P:\courses\spring2006\cosc\cosc110\00X\information\efficiency.txt (where the X is a 2 or a 3).
Make sure all program output is clearly
labeled. Hand in a printout of your well-documented program and a
screen capture of the output from the program's execution. Then,
copy the .cpp file for the program to the hand-in folder on the P: drive.
Be sure to name the .cpp file after yourself; for example, I might name
my file p4-wolfe.cpp