程序代写代做 PIC 10A – Lec 1 Homework 6(100pt) Due 5 PM, Friday, May 29

PIC 10A – Lec 1 Homework 6(100pt) Due 5 PM, Friday, May 29
Problem 1 (100pt): Download the main function file main.cpp on CCLE and write classes Point and Rectangle and their member functions accordingly to make main.cpp compile. You may not modify main.cpp.
You have the freedom to name your private members and every implementation detail of classes, but make sure your classes should have the correct interfaces so that main function can be compiled properly.
Methods include (but are not limited to):
• constructors for classes;
• area computes and returns the area of the rectangle;
• is larger compares the areas of two rectangles and return true if the object has a larger area.
• overloading of operator >; Instructions:
• (5pt) You may not modify main.cpp. Submit the header file shape.h and implemen- tation file shape.cpp on CCLE.
• (5pt) Write your code with good coding practices. Comment on your code to make it readable and add description of this file in the beginning to show your ownership.
• (90pt) main.cpp compiles smoothly in VS 2019 with your shape.h and shape.cpp. Output is correct as follows. You may not use stdafx.h.
The output should look like:
1 0.87 1
0
1