"FinalExam" Lab
"FinalExam" Lab

OVERVIEW


Instructions:

  1. Fish_AB.java

    1. Create a class called Shapes_AB which controls the drawing of a small collection of shapes corresponding to the ones you've been assigned.
      Use your own initials to name your shapes class.

      For example, Robert Simmons will name his class Shapes_RS.java

    2. Your Shapes_AB class should implement Ifc1.java

    3. Your Shapes_AB class should have a simple constructor which accepts exactly four parameters
      1. the x and
      2. the y of the imaginary boundaries of the fish's drawing
      3. width
      4. height of this same temporary design area in that order!

        NOTE:
        **ALL** parts should fit within IMAGINARY rectangle defined by these values you should go ahead and draw a red rectangle using them and keep it around as you DESIGN your fish and get the parts where you want them. However, when you are done you should remove all reference and drawing of this rectangle!!!!
                StdDraw.rectangle( x+w/2, y-h/2, w/2, h/2 );
        Remove this red rectangle when done with your design.

    4. Your Shapes_AB class should have a overloaded constructor which accepts exactly three parameters. They should be x, y, and s. Where 's' should be used for both width and height. There is an SHORT WAY and LONG WAY to do this. Guess which gets you full credit....
  2. AClient.java

    • Follow instructions found inside file: AClient.java

Mail me your Shapes_AB.java & AClient.java source code files.