Question


1. Your Body Mass Index (BMI) is a measure of your weight relative to your height. The formula can be found here: http://www.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

BMI print BMI Calculator declare variables float height, weight, BMI print Enter height in feet and inches input height p

% code to calculate BMI of a person
% formula : BMI = mass(in pound) * 703 / (height in inches)^2
disp("BMI Calculator")
height = input("Enter your height in feet: ")
height_in_inches = 12.*height
weight = input("Enter your weight in pounds: ")
BMI = (weight .* 703) / (height_in_inches.*height_in_inches)
disp(BMI)
if (BMI < 18.5)
disp('You are underweight')
else if ((BMI > 18.5) && (BMI <= 24.9))
disp('You are normal')
else if ((BMI >= 25) && (BMI <= 29.9))
disp('You are overweight')
else (BMI >= 30)
disp('You are classified as obese')
end
end
end

MATLAB Drive > 4 = . BMI_Calculator.mx + 1 % code to calculate BMI of a person 2. % formula : BMI = mass(in pound) * 703 / (h

output

BMI_Calculator.m COMMAND WINDOW >> BMI_Calculator BMI Calculator Enter your height in feet: 5.2 height = 5.2000 height_in_inc

*NOTE: Drop comments for queries.

Add a comment
Know the answer?
Add Answer to:
1. Your Body Mass Index (BMI) is a measure of your weight relative to your height....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The body mass index (BMI estimates the amount of fat in a person's body. It is defined as the person's mass m in kilograms divided by the square of the person's height h in meters. Write...

    The body mass index (BMI estimates the amount of fat in a person's body. It is defined as the person's mass m in kilograms divided by the square of the person's height h in meters. Write the formula for BMI in terms of m and h. 0 BMI In the United States, most people measure weight in pounds and height in feet and inches. When weight W is measured in pounds and height h is measured in inches, the BMI...

  • Weight: 131 lbs Female Height: 5 ft 2 inches Calculate, showing the math, your Body Mass...

    Weight: 131 lbs Female Height: 5 ft 2 inches Calculate, showing the math, your Body Mass Index (BMI) using the formula 'weight in kilograms divided by height in meters squared' (kg/m^2). Note: Weight in pounds divided by 2.2 = weight in kg and height in inches times .0254 = height in meters. The number is absolute and not a percentage. Based on your BMI, are you underweight, healthy weight, overweight, or obese?

  • OGICAL 28. Body mass index (BMI) is a measure of obesity. In standard units, it is...

    OGICAL 28. Body mass index (BMI) is a measure of obesity. In standard units, it is calculated by the formula EMENTS BMI = 7032 ATEMENT NESTED INTS where Wis weight in pounds, and His height in inches. The obesity classification is BMI Classification Below 18.5 Underweight 18.5 to 24.9 Normal 25 to 29.9 Overweight 30 and above Obese Tue Write a program in a script file that calculates the BMI of a person. The program asks the person to enter...

  • Using JAVAFX The application will calculate Body Mass Index (BMI) for people. It must be able...

    Using JAVAFX The application will calculate Body Mass Index (BMI) for people. It must be able to accept as input weights (in pounds or kilos), and height (in inches or centimeters). The application should have a calculate button, and should display the result as well as if the data puts the person in one of 4 categories underweight ( BMI < 18.5) , normal weight (BMI 18.5-24.9), overweight (BMI 25.0 - 29.9) or overweight (BMI > 30) For full credit...

  • 5. A person's Body-Mass Index (BMI) is calculated by dividing weight (in kilograms) by height2 (in...

    5. A person's Body-Mass Index (BMI) is calculated by dividing weight (in kilograms) by height2 (in meters). According to the book, The Changing Body, the BMI values of non-Hispanic adult males in the United States are approximately Normally distributed with mean (μ)-265 and standard deviation (o)-4.0. Find the standardized scores associated with the thresholds between different categories. a. Underweight vs. Normal (BMI 18.5) b. Normal vs. Overweight (BMI 25) c. Overweight vs. Obese (BMI 30) 6. Combine the standardized scores...

  • javafx 1. Implement a BMI (Body Mass Index) server that will accept height and weight from...

    javafx 1. Implement a BMI (Body Mass Index) server that will accept height and weight from the client, calculate the BMI and return a string with the BMI and a status (l.e. normal, over weight, etc.). Build a GUI using JavaFX. You are given a working BMI class that will do the BMI calculations, etc. A single BMI client connection is sufficient. 2. Implement a JavaFX BMI client that will allow the user to enter height (in inches), weight (in...

  • In Java Body mass index is a measure of whether someone's weight is appropriate for their...

    In Java Body mass index is a measure of whether someone's weight is appropriate for their height. A body- mass-index value between 19 and 25 is considered to be in the normal range. Here's the formula for calculating body mass index: BMI- (704 x weight in pounds) / height in inches*2 a) Implement a program that prompts the user for height and weight values and displays the associated body mass index. Perform input validation by making sure that the user...

  • Interested in obesity, investigators measured body mass index (BMI), a measure of weight relative to height,...

    Interested in obesity, investigators measured body mass index (BMI), a measure of weight relative to height, for both the girls and their mothers. People with high BMI are overweight. The data for 15 of the random subjects and their mothers is below: Mother BMI 23 24 21 18 26 29 25 20 24 23 22 27 28 23 21 Daughter BMI 22 24 20 21 24 27 22 21 22 21 21 25 24 20 18 The correlation between the...

  • A Body Mass Index (BMI) of 26 for an adult indicates that the person is? a....

    A Body Mass Index (BMI) of 26 for an adult indicates that the person is? a. normal body weight in relation to height b. obese c. grossly obese d. overweight

  • The body mass index (BMI) is a measure of relative weight based on height and weight....

    The body mass index (BMI) is a measure of relative weight based on height and weight. The body fat percentage (BFP) of a human or other living being is the total mass of fat divided by total body mass, multiplied by 100; body fat includes essential body fat and storage body fat. Essential body fat is necessary to maintain life and reproductive functions. Write a program that calculates and prints the BFP for multiple persons; the program allows user to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT