#include
#include "iostream.h"
double tri(double base, double height);
double square(double width, double height);
double circle(double radius);
double trap(double base, double base2, double height);
int main(void)
{
double base,height,ans,width,radius,base2;
int shape;
do{
cout<<"\t\t What would you like to find? (Enter a #) \n\n";
cout<<"\t\t\t********************************\n";
cout<<"\t\t\t*\t (1). Triangle *\n";
cout<<"\t\t\t*\t (2). Square *\n";
cout<<"\t\t\t*\t (3). Circle *\n";
cout<<"\t\t\t*\t (4). Trapezoid *\n";
cout<<"\t\t\t********************************\n\n\t\t\t\t\t";
cin>>shape;
cout<<"\n\n";
switch(shape)
{
case 1:
cout<<"What is the base length? ";
cin>>base;
cout<<"What is the Height of the Triangle? ";
cin>>height;
cout<<"\nArea of The Triangle is "<>width;
cout<<"What is the Height? ";
cin>>height;
cout<<"\nArea of The Square is "<>radius;
cout<<"Area of The Cirlce is "<>base;
cout<<"What is the other base length? ";
cin>>base2;
cout<<"What is the Height? ";
cin>>height;
cout<<"Area of The Trapezoid is "<
|