Question: Write the C++ code of following functions: compute_Circle that returns area and circumference of a circle with given radius r. compute_Rectangle that returns area and

Write the C++ code of following functions:

compute_Circle that returns area and circumference of a circle with given radius r.

compute_Rectangle that returns area and perimeter of a rectangle with given length l and width w.

compute_Triangle that returns the area and the perimeter of a triangle with given sides a, b, c.

compute_Sphere that returns volume and surface area of a sphere with given radius r.

compute_Cylinder that returns volume and surface area of a cylinder with given radius r and height h.

Design a menu function that will take a number from the user as input and then perform specific operation based on input value. All cin and cout should only be done in the menu function.

On 1 print area and circumference of circle.

On 2 print area and Perimeter of a rectangle.

On 3 print area and the perimeter of a triangle.

On 4 print volume and surface area of a sphere

On 5 print volume and surface area of a cylinder

On 6 Exit Program.

YOU CANNOT USE ANY break, continue or goto statement IN THIS

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!