well you can create your own function for calculation of each shape.
rather you can also create functions with the same name but with different signatures(or parameters) known as Overloaded function :
here is the function for Circle :
function ComputeArea(Double distance)
{
double area;
area=distance*3.14;
cout<<"Circumference of a circle is : "<<area;
}
here you have to pass a parameter "distance" which will be used to compute area of circle.
Similiarly for Rectangle :
function ComputeArea(integer height,integer width)
{
integer area;
area=height*width;
cout<<"Area of rectangle is: " <<area;
}
As you can see, i have created another function with the same name but with different parameters and also more importantly of different type. this is the concept of overloaded function:
similiarly you can create it for Triangle and Square.
and then in the switch code :
case "CIRCLE" :
ComputeArea(2.45);
and the same for others.
Hope it helps! :)