Rectangle class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cookiem0n
    New Member
    • Jan 2008
    • 1

    #1

    Rectangle class

    I need to create a class Rectangle. This class stores only the Cartesian coordinates of the four corners of the rectangle. The constructor calls a set method that accepts four sets of coordinates and verifies that each of these is in the first quadrant with no single x- and y- coordinate larger than 20.0. The set method also verifies that the supplied coordinates do, in fact, specify a rectangle. Provide methods to calculate the length, width, perimeter, and area. The length is the larger of the two dimensions. Include a predicate method isSquare which determines whether a rectangle is a square. Write a program to test class Rectangle. If anyone could help me my email is ccaslin6@gmail. com
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    MODERATOR

    Comment

    Working...