need programming help! (C++)
I'm doing a geometric calculations thing using microsoft visual basic and I don't know how to set up the stuff so it calculates the volume and area. I just have to make up a problem. If you know this stuff type the code that I need to write in the cout section. Do the volume of a cylinder and area of a circle if you can set up an example for me. Volume of a cylinder is pi*radius squared*height, area of a circle is pi*radius squared. Note it has to solve the problems for you, you can't put the answer down.
If you need more clarification on what I'm doing go to my programming teacher's website at
MsPetr.org and click on programming 1 C++, then click on geometric calculator (calc) and Math Operations.
[php]#include <math.h>[/php]
has lots of math functions.