Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a BMI calculator application that reads the user's weight in pounds and height in inches, then calculates and displays the user's body mass

image text in transcribed

Create a BMI calculator application that reads the user's weight in pounds and height in inches, then calculates and displays the user's body mass index. Also, the application should display the following information from the Department of Health and Services/National Institutes of Health so the user can evaluate his/her BMI: BMI VALUES: Underweight: less than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.0 Obese: 30 or greater The formulas for calculating BMI are: BMI = (weightInPounds * 703) / (heightInInches * heightInInches) Don't forget to use the float datatype when declaring variables. The output screen should look like: C:\Users\dcami\AppData\Local\Temp\Temp1_CIS126L_AnswerKey_Code-1 (4... Please enter your height (in inches): 62 Please enter your weight (in pounds): 152 Your Body Mass Index is 27.8 BMI VALUES Underweight: Normal BMI: Overweight: Obese: less than 18.5 between 18.5 and 24.9 between 25 and 29.9 30 or greater Process exited after 4.006 seconds with return value 0 Press any key to continue . . . -

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

Numerical Methods For Engineers

Authors: Steven C. Chapra, Raymond P. Canale

5th Edition

978-0071244299, 0071244298

More Books

Students also viewed these Mechanical Engineering questions

Question

Why could you consider paracrises both risks and opportunities?

Answered: 1 week ago

Question

Why should managers bother identifying red flags?

Answered: 1 week ago