Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions