Write a simple class named rect that representsrectangles that have integer valu
ID: 3613073 • Letter: W
Question
Write a simple class named rect that representsrectangles that have integer valued dimensions.
Sample Run:
prompt: a.out
Enter height: 7
Please width: 3
The area is 21
The perimeter is 20
***
***
***
***
***
***
***
prompt: a.out
Please enter the height of the rectangle: 0
Please enter the width of the rectangle: 10
Invalid retangle.
The area is 1
The perimeter is 4
*
prompt: a.out
Please enter the height of the rectangle: 32
Please enter the width of the rectangle: 32
The area is 1024
The perimeter is 128
This rectangle is too large to display.