find the area of a shape
Description:
Write a program to calculate the are of four basic geometric shapes:
The menu should keep looping until the user chooses to quit.
Requirements:
Your output should look similar to this:
This program will calculate the area of a specified shape
---------------------------------------------------------
1) Triangle
2) Rectangle
3) Square
4) Circle
5) Quit
Please select a shape: 1
Base: 12
Height:90
The Area is 540
Please select a shape: 5
Good bye.
Concepts:
Additional Concepts:
Challenge:
Given the points (as [x,y] coordinates) of a polygon that may have anywhere from 3 to 10 sides, write a program to calculate the area.
Updated: