Question: 26. You are to write a class named Rectangle. You must use separate files for the header (Rectangle h) and implementation (Rectangle.cpp) just like you

 26. You are to write a class named Rectangle. You mustuse separate files for the header (Rectangle h) and implementation (Rectangle.cpp) just

26. You are to write a class named Rectangle. You must use separate files for the header (Rectangle h) and implementation (Rectangle.cpp) just like you did for the Distance class lab and Deck/Card program. You have been provided the declaration for a class named Point. Assume this class has been implemented. You are just using this class, NOT implementing it. We have also provided a main function that will use the Point and Rectangle classes along with the output of this main function. You must implement voor Rectanale class such that this main function will compile and output exactly as in the example given. The Rectangle display represents the 4 comer Points of the Rectangle. You may declare any private data members and declare and implement any private helper functions for the Rectangle class. You may not change or add anything to the point class. You must include any libraries you use. main.cpp file #include "Point." #include "Rectangle." #include using namespace std; int main() { Point p = Point (1.0, 1.0); Point : Rectangle rl = Rectangle 'q, Point (5.0, 2.0)); Rectangle r2 = Rectangle (p 3.2 4.1); cout

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!