Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Pls do Not AND i repeat do not use using namespace std; pls do not use that Question 1. 4.2 - If/Else (Part 2) /
Pls do Not AND i repeat do not use "using namespace std; pls do not use that
Question 1.
4.2 - If/Else (Part 2) / 9. BMI Report 20 points possible Reset to Starter Code Saved Ask the user to enter their weight [in pounds] and their height in inches. Calculate their Body Mass Index (BMI) and tell them whether they are underweight, overweight, or at optimal weight. BMI formula: weight * 703 / (height * helght] Optimal weight is a BMI from 19 to 26. Lower is underweight, higher is overweight. Prompts Enter your weight (in pounds): [possible user input: 144] Enter your height (in inches): Iposible user input: 73] Possible Outputs: Your BMI is 18.9961, wilich means you are underweight. Your BMT is 29.2612, which means you are overweight Your BMI is 25.8704, which means you are al optimal woigill. Notes and Hints: 1) For simplicity, assume user entries will be in whole numbers. However, BMI must be calculated with decimals. 2) You must use an il/else if structure for this 3) NOTE: The three exercises in this HW are going to make you think a bit. If you want really basic practice with if/else and related concepts, read your author's examples in section 4.5 - 4.9. He has plenty of easy code (with explanations) in the main textStep 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