Question: Write a C++ program rectangle01.cpp that calculates some parameters for a rectangle. The program prompts the user for length (inches) and breadth (inches) of a

Write a C++ program rectangle01.cpp that calculates some parameters for a rectangle. The program prompts the user for length (inches) and breadth (inches) of a rectangle. It then calls a function to calculate the area of the rectangular board (length x breadth, in square inches) and reports it. It then calls another function to calculate the perimeter of the rectangular board (sum of its four sides, in inches) and reports it. It then calculates the length of a diagonal of the rectangular board ((length2 + breadth2 ), in inches) and reports it. If the cost of painting the board is $2.09 per square inch, also indicate the cost of painting (in US$) the board on one side. Make sure your painting cost has just two digits after the decimal point.

Notes on what you did would help me very much

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!