Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computing Target Heart Rates Purpose This lab provides a brief C++ structured programming task involving console I/O as well as integer arithmetic. Youll gain additional

image text in transcribed
Computing Target Heart Rates Purpose This lab provides a brief C++ structured programming task involving console I/O as well as integer arithmetic. Youll gain additional experience with Visual Studio. Procedure Refer to the ApproxE.cpp structured programming example (computing the approximation to the mathematical constant e). This is available on WyoCourses, the Lecture Code link, Lecture 06. The goal of this lab is to utilize the "minimal main0, stubby function/procedure" design framework to provide a small but useful program. 1. Your task is to write a C++ program which computes a set of target heart rate values associated with human exercise research. The formulas you will need can be found on the following web page: http://en.wikipeliaorg/wiki/Heat rate 2. Your program should prompt the user for two integers, the subjects age in years (age) and the subjects resting heart rate in beats per nimute (HRrest), then compute and display the integer valued maximal safe heort rate for this individual nsing (HRmax=205.8(0.685agc) ) [Robergs \& Landwehr], the 85% intensity targct heart rate (THR85) based upon the Karvonen method, sud the heart mate reserve (HRR). NOTE: Your program should conduct a simple validation of the input datn (only positive inputs are allowed: the subject must be older than 0 years and have a resting heart rate greater than 0 ). 3. To get you started with the program design, we provide n "minimal main(), stubby function/procedure" template for this program as shown at the top of the third page. (a) Your job is to complete the implementations (fill in the "stubby bodies") of the finctions. (b) You are strongly encouraged to proceed one step at a time in this process, compiling and testing each fuuction implementation before proceceling to the next finction

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions