Answered step by step
Verified Expert Solution
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
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
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