Write and run a C++ program to calculate and print the areas of 3 geometric shapes (Rectangle, triangle, and circle) using functions as follows:
1. Write 3 separate functions to calculate the areas of the 3 shapes, one function per shape. Input parameters will be
a. L and W for the rectangle length and width, respectively
b. B and H for the triangle base and height respectively
c. R for the circle radius (use 3.1416 for pi)
2. Write a 4th function that will display the areas of all 3 shapes.
3. Your program Should have a main function that calls (invokes) the other 4 functions.
4. Test your program 3 times using the following data:
L W B H R
1. 10 5 10 10 10
2. 5 1 12 3 5
3. 66 44 150 34 200
I am fairly new as well but I did a google search on c++ area of shapes. You can find tons that have your program already written for you. Wish my situation was this simple.