Home /
Expert Answers /
Computer Science /
can-we-see-the-answer-to-the-rectangle-program-nbsp-in-c-in-this-format-please-project-view-ex-pa214
(Solved): Can we see the answer to the Rectangle program in C++ in this format please?
Project View Ex ...
Can we see the answer to the Rectangle program in C++ in this format please?
Project View Example:
Lab 5 - Rectangle program (functions and multi-file programs) Create a new project in Code::Blocks and write a program that prompts the user for the two (2) side lengths of a rectangle and computes the area, perimeter, and the diagonal of the rectangle using four (4) functions that are located in a header file. The program will use two files. Main will contain the prompts for the user and calls to the functions. The header file (*.h) will contain the required functions. Output must be from the output function. Four functions are required (and will be in the separate header file), and #include \( \langle c m a t h\rangle \). 1. Prompt for side length 1 , then prompt for side length 2 in main 2. Call a function that computes the area of the rectangle and returns the value 3. Call another function that computes the perimeter and returns the value 4. Call another function that computes the diagonal and returns the value 5. Call a void output function that displays all of the values with descriptions as shown below with precision set to 2 places. This function does not return a value.