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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started