Question
A research institute specializing in physiology is conducting a study on the strain and effects of commuting trips done on a bicycle or walking. When
A research institute specializing in physiology is conducting a study on the strain and effects of commuting trips done on a bicycle or walking. When the physiological strain of commuting trips has been studied, the results will be used in exercise prescriptions, which can then use commuting as part of an exercise regimen.
In this program, build a C++ program to analyze a small subset of the data that has been collected.
INPUT:Takethe input from the this list which will be at the end of this question.
Input data format:
The file consists ofthree columns, withsix linesof data foreach person, test subject.
Thefirst linestores:
i.column 1 -each person'sID number(integer),
ii.column2 -clinically measured maximum heart rate(integer), and
iii.column3 -age(integer).
For the nextfive lines,eachcontains:
(a) column 1 - theday's average commuting heart rate
(b) column 2 -maximum commuting heart rate, and
(c) column 3 -exercise heart rate
forfiveconsecutive working days.
Then,thesix-line partition is repeatedfor the next person.
At times the heart rate monitors reacted to nearby power lines or other signal interference, and gavefalse readings. Theseincorrectmeasurementswere rejected and show up in the data file as-1. On the days the persondid not exercise, the exercise heart rate value iszero.
PROCESSING:Use preciselyfour parallel arrays:oneforsubjectID numbersandthreefor thecalculated valuesas described below.
Using this information,calculate
- Weekly averageof the average(daily)commuting heart ratesfor each person.
- Number of daysthat the person exercised on his/her own.
- Estimated maximum heart rate=220 - age.
OUTPUT:Output should be in the following format
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