Hey guys, I am currently in an online C++ class and needless to say, I am completely lost. I am currently using the C++ for Dummies book (the name is fitting, isn't it?) but my professor's homework assignments are not the same as what is in the chapters of the book. Here's one and what I have so far....
Assignment: Write a program that asks the user to enter the base and height of a triangle, separately, as decimal
numbers, e.g., float B, H , then calculates the triangle’s area using the formula: A=1/2 * B * H
What's the problem? You're basically done, except that base and height are required to be floats by the assignment. All that's left is the actual calculation and displaying the result. float area=0.5f * base * height;