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
{ 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"< void circle() {//Input the radius and save it in 'c' float c,area; cout<<" Enter the radius of circle"< 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"< 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< }cout<<"Do you want to continue? y/n"< 1. Convert the C++ programming into flowchart.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
