Question: Assignment: Body Mass Index (Project name) Create a Visual C++ application that lets the user enter his or her weight (in pounds) and height (in



Assignment: Body Mass Index (Project name) Create a Visual C++ application that lets the user enter his or her weight (in pounds) and 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: 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); //function computes and returns BMI 3. Function display will display the results and the message. display (weight, height, bmi); //function that displays results The functions are kept inside a do..while loop to repeat the process using the response (y). do 1 Function call Function call Function call cout > again: again - wupper(again) while ((again !- 'Y)&&(again ! "N)) WERROR TRAP cout> again: again-toupperagain 1 while (responseyi response -Y) Sample display: Before the display, use system/"cls") to clear the wtput screen Sample #1: The prompt messages are: Enter weight (in pounds) : 170 Enter height (in inches) : 68 Display: Weight (in pounds): 170 Height (in inches): 68 --- 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
Get step-by-step solutions from verified subject matter experts
