Course Management Teaching Assesment ePortfolio Mahara Course search Helpdesk Develop a C++ program to calculate the area, perimeter and diagonal of a rectangle. The program should also offer the...


Course Management Teaching Assesment<br>ePortfolio Mahara Course search Helpdesk<br>Develop a C++ program to calculate the area, perimeter and diagonal of a rectangle.<br>The program should also offer the option to display the rectangle. The main flow of<br>the program is given as follows:<br>red<br>20.00<br>The user should input the length and width of a rectangle.<br>The user can decide to display the drawing of the rectangle or not. If user indicate<br>yes, execute user's decision.<br>• Display the calculated area, perimeter and diagonal of the rectangle.<br>The program should repeatedly ask if the user wants to process another rectan-<br>gle.<br>Your program should include two functions with the following function prototypes:<br>void drawRec(int length, int width);<br>A function that display a full rectangle with +'.<br>void calcRec (int a, int b, int area, int perim, float diag);<br>A function that returns the area, perimeter and diagonal through pointer parame-<br>ter.<br>Sample output:<br>Enter the length and width of a rectangle: 4 8<br>

Extracted text: Course Management Teaching Assesment ePortfolio Mahara Course search Helpdesk Develop a C++ program to calculate the area, perimeter and diagonal of a rectangle. The program should also offer the option to display the rectangle. The main flow of the program is given as follows: red 20.00 The user should input the length and width of a rectangle. The user can decide to display the drawing of the rectangle or not. If user indicate yes, execute user's decision. • Display the calculated area, perimeter and diagonal of the rectangle. The program should repeatedly ask if the user wants to process another rectan- gle. Your program should include two functions with the following function prototypes: void drawRec(int length, int width); A function that display a full rectangle with +'. void calcRec (int a, int b, int area, int perim, float diag); A function that returns the area, perimeter and diagonal through pointer parame- ter. Sample output: Enter the length and width of a rectangle: 4 8

Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here