Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use MATLAB to find answers to the following problems. You are encouraged to use the search option and the help command in MATLAB to help
Use MATLAB to find answers to the following problems. You are encouraged to use the search option and the help command in MATLAB to help you with this exercise. Hand in a copy of your MATLAB programs and results from MATLAB execution of the programs.
3. The body surface area (BSA) in m2 of a person (used for determining dosage of medications) can be calculated by the formula (Du Bois formula): BSA 0.007184 Wo 425 H0.7s in which W is the mass in kg and H is the height in cm. Write a MATLAB function that calculates the body surface area. For the function name and arguments, use BodySurA(W, H The input arguments W and H are the mass and height respectively. The output argument BSA is the BSA value a. Include the following in your code: This program was written by John Quincy Adams Let the user enter three variables: First name, Middle name and Last Name Monday, March 5th (MW class) ENGR 1140 SPRING 2018LAB7 Name Due: Tuesday, March 6th (TR class); For example: For first name John, Middle name Quincy, Last name Adams, the output will be the following: This program was written by John Quincy Adams Let your program output the above statement but replace John Quincy Adams with your own name. b. Use the function to calculate i. the body surface area of 95 kg, 187cm person ii. Use fprintf to provide the following output: Height Weight BSA 187 95? Replace the question mark with your computed value for BSA (approximated to 3 decimal places) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started