Reference no: EM1317088
Write down a menu program which will print different formulas and perform the calculations. For every menu choice, show the formula and prompt for essential values. Then calculate and print area and perimeter.
The program should have five functions as follows:
1) int getMenuChoice( ); // show the menu, get and return the choice.
2) Void Circle (double *radius, double *area, double *perimeter); // show the formulas, get radius, determine the area and perimeter, function must return the values through output perimeters.
3) Void displayCircle (double radius, double area, double perimeter); // show all the values within a tabular format.
4) Void Rectangle (double *length, double *width, double *area, double *perimeter); // show the formulas, get the length and the width, determine the area and the perimeter, function must return the values through the output perimeters.
5) Void displayRectangle (double length, double width, double area, double perimeter); // show all the values within a tabular format.