Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Body mass index (BMI) of a person is a measure of body fat based on height and weight. In U.S. customary units it is
1. Body mass index (BMI) of a person is a measure of body fat based on height and weight. In U.S. customary units it is calculated by: BM I = 703 where W is the person's weight in pounds and h is the heights in inches. Write a MATLAB program in a script file that calculates the BMI. For input the program asks the user to enter his/her weight and height. The pro- gram then calculates the BMI rounded to the nearest tenth. For output the program displays the message: The BMI is: XX." where XX is the value of the BMI. Determine the BMI of a 68-in.-tall person that weigh162 lb. 9. The value of a saving account, V, after t years is given by: where P is the initial investment, r is the yearly interest rate in % (eg, 7.5% entered as 7.5), and is the number of times per year that the interest is compounded. Write a MATLAB program in a script file that calculates V When the program is executed, it asks the user to enter the amount of the initial investment, the number of years, the interest rate, and the number of times per year that the interest is compounded. The output is displayed in the following format: "The value of a SXX investment at a yearly interest rate of XX% compounded X times per year, after XX years is SXXXX.XX", where XXX stands for the corresponding quantities. Use the program to determine the value of a $20,000 investment after 18 years if the yearly interest rate is 3.5% compounded 6 times a year MATHLAB
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