Question: by using Matlab software 9) [5 pts] Build a program that calculates the BMI (Body Mass Index) value of a person. The BMI can be
by using Matlab software
9) [5 pts] Build a program that calculates the BMI (Body Mass Index) value of a person. The BMI can be calculated using the following formula. weight in pounds BMI X 703 (height in inches) Ask the user to enter his/her weight in pounds. For example, if the weight is 130 pounds user will enter 130. Then ask the user to enter his/her height in feet and inches in an array. For example, if the height is 5 feet and 6 inches user must enter [5 6]. Calculate the BMI value and display the output using fprintf command as below. The BMI value should be displayed only in one decimal place. Your program should be able to calculate the BMI value for any weight and height. Note that 1 feet = 12 inches. Your BMI value is calculated value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
