Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB: Someone pls help with this matlab question asap ! thanks! THR = (MHR-RHR) INTEN + RHR where MHR is the maximum heart rate given

MATLAB: Someone pls help with this matlab question asap ! thanks! image text in transcribed
THR = (MHR-RHR) INTEN + RHR where MHR is the maximum heart rate given by (https://en.wikipedia.org/wiki/Heart rate): For male: MHRe03(498-1045) RHR is the resting heart rate, and INTEN is the fitness level (0.55 for low, 0.65 for medium, and 0.8 for high fitness). (13 pts) Write a program in a script file HWSP2 to determine the required THR, that 203.7 190.2 Heaosa(age-10.3) , for female: MHR = e-10 i. asks the user to enter his/her a. gender, M (for male) or F (for female), b. age (number), c. resting heart rate (number), and d. fitness level (low, medium, or high). ii. ii. uses switch-case structure to assign values to INTEN based on the fitness level. iv. uses if-elseif structure to assign values to MHR based on the gender. If the program did not recognize the gender or fitness level entered, the program must through a message Invalid entry, check your input and try again. 'using the error0 function in MATLAB and stop. Check the help of the error function in MATLAB to know how it works For the case of no errors, the program determines and displays the training heart rate (rounded to the nearest integer), as v. For a xX year-old FMFM with XX resting heart rate and HML fitness level, the training heart rate is X xx is for numbers, FMFM is for (male or female) and HML, is for (high, medium or low)

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions