Question: Create a project in Code::Blocks and write a program that prompts the user for the two (2) side lengths of a rectangle and computes the
Create a 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 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 will contain the required functions. Output must be from the output function. Four functions are required (and will be in the separate header file). 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 an output function that displays all of the values with descriptions Function names should describe what the function does (ex: get_perimeter, display_output, etc).
code in C++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
