Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP ME BY USING MATLAB: A growing number of people are becoming more health conscious watching their diet and exercising more. Statistics are available to

HELP ME BY USING MATLAB:

A growing number of people are becoming more health conscious watching their diet and exercising more. Statistics are available to help them monitor their progress toward becoming a healthier person. The body mass index (BMI) is a statistical measure which compares a persons weight and height. Though it does not actually measure the percentage of body fat, it is used to estimate a healthy body weight. The following equation is used to calculate body mass index. Note: The mass is the body weight in kilograms and height is in meters.

In addition to the requirements in the previous assignment, you are asked to determine the classification* of the computed BMI using the ranges below. *According to the National Heart, Lung, and Blood Institute classifications, body mass index is used to determine whether an individual is overweight or obese:

severely underweight

>= 16.0 underweight

>= 18.5 normal

>= 25.0 overweight

>= 30.0 moderately obese

>= 35.0 severely obese

Program: assign03a.m

Save your assign02a.m as assign03.m. Using the algorithm and sample output as a guide, determine and display the BMI category.

Additional Problem Constants: (with units) None.

Additional Problem Inputs: (with units) None

Additional Problem Outputs: (with units) BMI classification Additional Other variables: (with units) as needed

Sample run output:

Enter the height in inches: 72

Enter the weight in pounds: 165

The BMI is: 22.378

BMI Classification: Normal

Start your program file by typing the following into your empty editor window.

Type yours/your group and other required information comments.

Type the algorithm as given below as comments to guide you when writing the MATLAB instructions to do the tasks to solve the given problem.

Below the comment, type the MATLAB statement(s) that do what the comment says.

% a short narrative about what the file does

clc, clear all

%*****INPUT*****

% Prompt the user to enter a value for weight in pounds and height in inches.

%*****COMPUTE*****

% Compute conversions

% Compute BMI

%*****OUTPUT*****

% display BMI % Display BMI classificationimage text in transcribed

CO File | file:///C/Users/johni/Downloads/assign03.pdf Apps 2.8 Prospective Internati * Individual Presentati assign03bm In assign03b.m, two vectors contain the heights and weights. Using the algorithm and sample output as a guide, determine and display the BMIls and the people numbers with BMIs not in the normal range. Thi; 1 f family and svi toh oase. compars at onc value ada tine toa erina. MATLAB has a, function ta that loks rough vector or matrix to locate all the values that mect a criteria. The output of the tindl) function is a vector that contains the locations of the items that maich the criteria. Problem Constams: (with units) Probiem Inputs: (with units) Height in inches Weight in pounds a vector containing: L 70 65 72 60 69 a vector ooetaining: 200 190 165 150 120 Probles Ouputs: (with units) BMI People with mormal BMI The output of a findc) A vector the same size as the input vectors Onher wariabies:(with units) Sample run epp The IMI are: 28.697 People vith non-norms1 MT:1 2 4 5 31.6177 22.378 29.2949 17,7209 Start your pregram file by typing the following into your empty editer window . Type yoursyour group and other required information comments .Type the algorithm as given below as comments tind to gaide you when writing the MATLAB instructions math with vectors math with the dot to do the tasks to solve the given problem Below the comment, type the MATLAB statement(s) that do what the comment says Continue cemmands ormat compact submitter's name, GROUP d other group PrOgTam file name members' names num2str dispo s due date of the assignment s statementis) about cellaboration. See syllabus for esamples s a shoet narrative about what the file does Get values for veight in poands and beight in inches Compute conversions Conpute bal Find the BMIs in non-nomal range Bee text P.281 display Ia Type here to search ENG 11:02 PM 2/5/2019 26

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

101 Database Exercises Text Workbook

Authors: McGraw-Hill

2nd Edition

0028007484, 978-0028007489

More Books

Students also viewed these Databases questions