Multiple Functions with Input/Output Parameters
Write a menu program that will print various formulas and do calculations. For each menu choice, display the formula and prompt for the necessary values. Then calculate and print the area and the perimeter.
Your program must have 5 functions as follow:
1) int getMenuChoice( ); // display the menu, get and return the choice.
2) void Circle( double *radius, double *area, double *perimeter ); // display the formulas, get the radius, calculate the area and the perimeter, function should return the values through the output perimeters.
3) void displayCircle( double radius, double area, double perimeter ); // display the all the values in a tabular format.
4) void Rectangle( double *length, double *width, double *area, double *perimeter ); // display the formulas, get the length and the width, calculate the area and the perimeter, function should return the values through the output perimeters.
5) void displayRectangle( double length, double width, double area, double perimeter ); // display the all the values in a tabular format.