Question: please help me do this C++ program Part II 2. [12 Points] BMI calculator Program: Write a program to compute BMI(body mass index) for a
![please help me do this C++ program Part II 2. [12 Points]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f501e94d598_84066f501e8cbe30.jpg)
Part II 2. [12 Points] BMI calculator Program: Write a program to compute BMI(body mass index) for a person. According to one study, the BMI is computed as weight(kg)/(height(meters)"height(meters)). For example, to compute the BMI for a person with height 5'3" and weight 115 pounds, first a conversion from feet to meter and pound to kilogram is needed. We use the following conversion: Meters = feets/3.3, feets = inches/12.0, Kilograms pounds/2.2 Then, we know the person has height 1.59m and weight 52.3 kg. So the BMI is 52.3/(1.59*1.59) 20.69 Your program should ask the user to enter his/her height in feet and inches (both as integers--so a person 5'3" would enter the 5 and the 3), and the weight in pounds. It should then compute and print the BMI. The general outline of your main function would be as follows: Declare your variables (think about what variables you need you need to input three pieces of information (what?), then you need some variables for your calculations (see the following steps) 1. Get the input (height in feet and inches, weight in pounds) from the user 2. Convert the height in feet and inches to height in meters 3. Convert the weight in pounds to weight in kilograms. 4. Compute the BMI 5. Print the answers 6. Plan your program, then type it in, compile and run it. Be sure it gives correct answers. When a user runs your program, he/she should see the following output Program output Welcome to BMI calculator Program Please enter your height, feet followed by inches, and weight (eg: 53115):53 115 Your BMI is 20.69 o RI
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
