Question: 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!  MATLAB: Someone pls help with this matlab question asap ! thanks!

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!