20 pts |
Something To Tri |
Due: Sept. 6 |
This is a simple project mainly for practice running and submitting a C program.
Write a program which requests a height and base width of a triangle, and reports its area. In case your geometry is a bit rusty, the formula is simply on half base times height. Use floating point numbers.
You may use either plain C or C++; just make sure your file has an appropriate extension. If you write in plain C, send a .c file; C++ programs must be .cpp or .cc. My testing scripts use the extension to know how to compile your submission, and it may very well not compile if you get this wrong.
When your program works and looks nice, submit over the web here.