#include
#include "iostream.h"
double sphere(double radius);
double cylinder(double radius, double height);
double cone(double radius, double height);
double pyramid(double length, double width, double height);
double box(double width, double height, double length);
int main(void)
{
double radius,length,width,height;
int volume;
do{
cout<<"\t\tWhat volume would you like to find? (enter #) \n\n";
cout<<"\t\t\t ****************************\n";
cout<<"\t\t\t *\t (1). Sphere *\n";
cout<<"\t\t\t *\t (2). Cylinder *\n";
cout<<"\t\t\t *\t (3). Cone *\n";
cout<<"\t\t\t *\t (4). Pyramid * \n";
cout<<"\t\t\t *\t (5). Box *\n";
cout<<"\t\t\t ****************************\n\n\t\t\t\t\t";
cin>>volume;
switch(volume)
{
case 1:
cout<<"What is the Radius of the Sphere? ";
cin>>radius;
cout<<"The Volume Of THe Sphere is "<>radius;
cout<<"What is the Height of the Cylinder? ";
cin>>height;
cout<<"The Volume of The Cylinder is "<>radius;
cout<<"What is the Height of the Cone? ";
cin>>height;
cout<<"The Volume of The Cone is "<>length;
cout<<"What is the Width of the base? ";
cin>>width;
cout<<"What is the Height of the Pyramid? ";
cin>>height;
cout<<"The Volume of The Pyramid is "<>width;
cout<<"What is the Length? ";
cin>>length;
cout<<"What is the Height? ";
cin>>height;
cout<<"The Volume of The Box is "<
|