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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started