Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ahsoka Tano is a computer science student trying to make some lifestyle changes and be more active during her programming filled days. She wants to

Ahsoka Tano is a computer science student trying to make some lifestyle changes and be more active during her programming filled days. She wants to start working out and knows that monitoring your heart rate during a workout is important to make sure you challenge yourself properly without hurting yourself. Only problem is she doesnt know how to measure that. She did some quick research and found that the Karvonen formula can help individuals determine their target heart rate (HR) training zone. The Karvonen formula uses maximum and resting heart rate with the desired training intensity to get a target heart rate. Maximum Heart Rate (MHR) = 220 Age Target Heart Rate (THR) = [(MHR Resting HR) x %Intensity] + Resting HR Ahsoka could just Google Karvonen Formula Calculator, but that would be no fun. Help your fellow CS student by writing a C++ program that does the following: Prompt the user for: o First Name o Last Name o Age o Resting HR (Beats Per Min aka BPM) o Training Intensity Range (minimum %) o Training Intensity Range (maximum %) Then, display a user summary that has the following information: o The users first and last initials o Age o Resting HR (BPM) o Max HR (BPM) o Target Heart Rates (BPM) for their range Once your program is working, test it with the values in the screenshot below. You should get the same output. Then, run your program and test it with different values.

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

Can e-business fraud risks ever be completely eliminated?

Answered: 1 week ago