Question
Programming Project 3D Vital signs of hospital patients are monitored and reported automatically. While each monitor has alarms which go off when a reading is
Programming Project 3D
Vital signs of hospital patients are monitored and reported automatically. While each monitor has alarms which go off when a reading is out of range, combinations of readings are also important. Common vital signs and normal range is given below.
Pulse 60-100
Respiration 12-20
Oxygen Level 92-100
Write a program to read a series of patient records from the file PATIENTS.TXT. Use the Priming Read logic to process all records in the file. Each record (line of the file) contains the following fields delimited by a space: first name, lastname, pulse, respiration, oxygen, room. The file contains and unknown number of records. Unlike Program #2, simple stream input from the file should suffice to read this file.
A sample file with one record per line might resemble the following
Buster Leggs 88 44 88 120 Charlie Horse 56 15 95 011 Wilma Moneylast 132 18 98 200 Willie Makit 75 30 94 121 Betty Wont 50 10 90 000 Eaton Buggs 79 16 97 111 Freda Spirit 110 23 90 220
Categorize each reading as Low, Normal or High. Print the result in the report detailed below.
Tag each record as according to the following and print any needed messages in the report for each record
CHECK one indicator out of range ALERT*** two indicators out of range CRITICAL***** three indicators out of range
This Project is in the C++ Programming Language
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