Question: #include using namespace std; const double PI = 3.1419; double rectangle (double l, double w); #include int main() { double radius; double height; cout >
#includeusing namespace std; const double PI = 3.1419; double rectangle (double l, double w); #include int main() { double radius; double height; cout > choice; cout > radius >> height; cout > radius; cout > length >> width; cout > choice; cout
CPII (501222-3) | Assignment 1 Problem 1: The attached program is designed to find the area of a rectangle, the area of a circle, or the volume of a cylinder. However, (a) the statements are in the incorrect order; (b) the function calls are incorrect; (c) the logical expression in the while loop is incorrect; and (d) the function definitions are incorrect. Rewrite the program so that it works correctly. Your program must be properly indented. (Note that the program is menu driven and allows the user to run the program as long as the user wishes.) Important Notes: Get the correct output(' Program correctness Readability
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
