Guest User

Untitled

a guest
Nov 24th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. Create a new class.
  2.  
  3. This class will store the coordinates of the four corners of the rectangle.
  4. The constructor must call a control method that receives the four coordinates and check that they are located in the first quadrant (ie, that both the x and y are positive numbers) and that no x or y coordinate is greater than 20.0. The control method also controls the four coordinates really form a rectangle (the return value is preferably bool).
  5. Create methods to calculate the length, width, perimeter and area. Then test the class by creating objects from it and read / print out its characteristics.
Add Comment
Please, Sign In to add comment