Question: IN C++ 14.39 Homework 2: Rectangle Class For this homework, you have to develop a rectangle class--as we have practiced in the class-- with the

IN C++
14.39 Homework 2: Rectangle Class For this homework, you have to develop a rectangle class--as we have practiced in the class-- with the width and length attributes as private members along with public methods including constructor, accessors, mutators, area, perimeter, and an extra function that decides whether the object is rectangle or square. Develop your main function such that it Iteratively accepts two numbers in one line from the user, being the width and length of a rectangle. Store the numbers as a rectangle class object. Output its area, perimeter, and whether it is a rectangle or square. The program should terminate if both of the input values are zero. (15 pts) Ex: 24 Output: RECTANGLE 12 33 Output: SQUARE 12 00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
