Results 1 to 3 of 3

Thread: Need help

  1. #1
    bri_guy is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default Need help

    I need some help on a simple program within Eclipse if anybody can help me that would be much appreciated. Here are the conditions

    In the body of the Picture class create a new public method named "drawTriangleText" that has return type void and takes an integer argument.
    The method should make use of System.out.print() and System.out.println() to draw a triangle composed of *'s with the size of the square being dependent on the value of the parameter.
    The method should make use of nested for loops.
    Sample results for low values of n.

    In the body of the Picture class create a new public method named "colorWholeNested" that has return type void and takes a Color argument.
    The method should make use of nested for loops to color the entire picture to be the same as the Color argument.
    In the body of the Picture class create a new public method named "colorTriangleNested" that has return type void and takes a Color argument.
    The method should make use of nested for loops to color a right triangle to be the same as the Color argument.
    The triangle should be a right triangle with the 90 degree angle on the bottom left hand side of the image. The triangle should extend to the top of the left handside of the triangle (n = getHeight()) and the same number of pixels wide.
    In the body of the Picture class create a new public method named "colorRectAt" that has return type void and takes a Color argument, two integer arguments to specify the pixel position of the upper left hand corner of a rectangle, and two more integer arguments to specify the length and height of this rectangle.
    The method should make use of nested for loops to color the the pixels contained in a rectangle within the picture to be the same as the Color argument. The upper left hand corner of this rectangle should be specified by the parameter values, and the width and height of this rectangle will also be specified by parameter values.


    Any help would be much appreciated thank you

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,864
    Rep Power
    8

    Default

    That's not really how this works. We aren't just going to do your homework for you. Ask a specific question and post an SSCCE. See the link in my signature on how to ask questions the smart way.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    bri_guy is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default

    ok i wasnt sure im just learning this information and im just kind of lost. Alright i will mull over that and see what i can do

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •