Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

  1. Weekly averageof the average(daily)commuting heart ratesfor each person.
  2. Number of daysthat the person exercised on his/her own.
  3. Estimated maximum heart rate=220 - age.

OUTPUT:Output should be in the following format

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
\f\f\f\f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions

Question

Communication; Use of IT; Reflective thinking)

Answered: 1 week ago