Question: #include #include using namespace std; void arithmetic() { int op = 0; float A = 0; float B = 0; float a,b,c,l,d,area,volume; cout <

#include #include using namespace std; void arithmetic() { int op = 0; float A = 0; float B = 0; float a,b,c,l,d,area,volume; cout<<"Select operation "<>op; cout<<"Enter the number:"; cin>>A; cout<<"Enter second number:"; cin>>B; cout<<"Result: "; switch(op)

{ case 1: cout<<(A+B)<

cout<< endl; }

void trignometric() { int op = 0; float val = 0.0; cout<<"Select "; cout<<"[1] Sine "; cout<<"[2] Cosine "; cout<<"Op: "; cin>>op; cout<<"Enter value: "; cin>>val; if(op == 1) { cout<

else if(op == 2) { cout<

cout<

void exponential() { float base = 0.0; float eee = 0.0; cout<<"Enter base:"; cin>>base; cout<<"Enter expnent: "; cin>>eee; cout<

void logarithmic() { float value = 0.0; cout<<"Enter the value to calculate the log(e): "; cin>>value; cout<

void equilateral() {//Input the side and save it in 'a' float a,b,area; cout<<"Enter the side of Equilateral Triangle"<>a; cout<<"Enter the height of Equilateral Triangle"<>b; //calculate area and save it in 'area' area=(a*b)/2; //show the output 'area' cout<<"Area of Equilateral Triangle is "<

void circle() {//Input the radius and save it in 'c' float c,area; cout<<" Enter the radius of circle"<>c; //calculate area and save it in 'area' area=3.14*c*c; //show the output 'area' cout<<"Area of circle is "<

void rectangle() {//Input the length and breadth and save it in 'l' and 'd' respectively float l,d,area; cout<<" Enter the length of rectangle"<>l; cout<<"Enter the breadth of rectangle"<>d; //calculate area and save it in 'area' area=l*d; //show the output 'area' cout<<"Area of rectangle is "<

void vsphere() { int rad1; float volsp; cout << " Calculate the volume of a sphere : "; cout << "--------------------------------------- "; cout<<" Input the radius of a sphere : "; cin>>rad1; volsp=(4*3.14*rad1*rad1*rad1)/3; cout<<" The volume of a sphere is : "<< volsp << endl; }

void vcylinder() { int rad1,hgt; float volcy; cout << " Calculate the volume of a cylinder : "; cout << "----------------------------------------- "; cout<<" Input the radius of the cylinder : "; cin>>rad1; cout<<" Input the height of the cylinder : "; cin>>hgt; volcy=(3.14*rad1*rad1*hgt); cout<<" The volume of a cylinder is : "<< volcy << endl; cout << endl; }

void vpyramid() { int breadth; int height; float volume_of_pyramid;

// clrscr();

printf(" Program to calculate Volume of a Pyramid : ");

printf(" Enter the Breadth of Pyramid : "); scanf("%d", &breadth);

printf(" Enter the Height of Pyramid : "); scanf("%d", &height);

volume_of_pyramid = (1/3)*breadth*height;

printf(" Volume of Pyramid with Breadth as %d and Height as %d = %f",breadth,height,volume_of_pyramid); cout<

}

void vcuboid() { float cbd_Length, cbd_Width, cbd_Height, cbd_sa, cbd_Volume, cbd_LSA;

cout << " Please Enter the Length of a Cuboid = "; cin >> cbd_Length;

cout << " Please Enter the Width of a Cuboid = "; cin >> cbd_Width;

cout << " Please Enter the Height of a Cuboid = "; cin >> cbd_Height;

cbd_sa = 2 * (cbd_Length * cbd_Width + cbd_Length * cbd_Height + cbd_Width * cbd_Height); cbd_Volume = cbd_Length * cbd_Width * cbd_Height; cbd_LSA = 2 * cbd_Height * (cbd_Length + cbd_Width);

cout << " The Surface Area of a Cuboid = " << cbd_sa; cout << " The Volume of a Cuboid = " << cbd_Volume; cout << " The Lateral Surface Area of a Cuboid = " << cbd_LSA; cout<>sel; switch(sel) { case 1: arithmetic(); break; case 2: trignometric(); break; case 3: exponential(); break; case 4: logarithmic(); break; case 5: equilateral(); break; case 6: circle(); break; case 7: rectangle(); break; case 8: vsphere(); break; case 9: vcylinder(); break; case 10: vpyramid(); break; case 11: vcuboid(); break; default: cout<<"Invalid Operation";

}cout<<"Do you want to continue? y/n"<>choice; if(choice == 'n') { break; } } return 0; }

1. Convert the C++ programming into flowchart.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!