Hello everyone! I hope someone can help me. I'm not very good with programming, so please bear with me, because I'm sure this is very simple for better programmers. But I digress. I am trying to write a C++ program to calculate your "ideal body weight".

Here is the question/story:

A simple rule to estimate your ideal body weight is to allow 110 pounds for the first 5 feet of height and 5 pounds for each additional inch. Write a program with a variable for the height of a person in feet and another variable for the additional inches and input values for these variables from the keyboard. Assume the person is at least 5 feet tall. For example, a person that is 6 feet and 3 inches tall would be represented with a variable that stores the number 6 and another variable that stores the number 3. Based on these values calculate and output the ideal body weight.

And here is the code I have so far!

I'm not very good with math, so that is where I am having the most trouble!Code:#include <iostream> using namespace std; int main( ) { int feet; int inches; int ideal; cout << "Please enter how many feet tall you are: "; cin >> feet; cout << "Please enter the additional inches of your height: "; cin >> inches; //math equation cout << "Your ideal body weight is" return 0; }

Thank you, for any help/feedback!

Kyle