Answered step by step
Verified Expert Solution
Question
1 Approved Answer
All done in C++ Assignment: Body Mass Index (Project name) Create a Visual C++ application that lets the user enter his or her weight (in
All done in C++
Assignment: Body Mass Index (Project name) Create a Visual C++ application that lets the user enter his or her weight (in pounds) und height (in inches). The application should calculate the user's body mass index (BMI). The BMI is often use to determine whether a person is overweight or underweight for his or her height: Program will display 1 Weight, 2. Height, 3. BMI, and a message. The person's BMI is calculated with the following formula: bmi =(weight. 703) / height? Variable bmi is declared as double. Variables weight and height are declared as double. Your program will have the following functions: 1. Function getData will receive data from the user. It will prompt the user to enter weight and height getData (weight, height); 1/function that receives data The prompt messages are: Enter weight (in pounds):.. Enter height (in inches) _ 2. Function computeBMI will compute and return the Body Mass Index. bmi = computeBMI (weight, height); 1/function computes and returns BMI 3. Function display will display the results and the message. display (weight, height, bmi): 1/function that displays results The functions are kept inside a do..while loop to repeat the process using the response (y). do t Function call Function call Function call cout > again again toupper again while ttapain - Y) && again //ERROR TRAP 1 cout> again again-touppertains while responseil response ). Sample display efore they dearth Sample The promot messages are Enter weight (in pounds) : 170 Enter height (in inches) 68 Display Weight: 170 pounds Height: 68 inches Blank Line The person's BMI IS 25.85 A BMI of 25.0 or more is overweight, while the healthy range is 18.5 to 24.9. BMI applies to most adults 18-65 years. Programmer: Your name cout 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