5 Replies Latest reply on Jul 8, 2008 7:42 PM by soldier43

    Please Help

    soldier43
      Alright.. I am taking a computer programming concepts class in college and I missed today's class for personal reasons. The homework assigned for today is:

      * Write a function that uses IF, ELSE IF, and ELSE to draw 12 rectangles on the screen in three different groups of sizes.

      1. Create 12 instances of the Sprite class
      2. Draw any color rectangle at an appropriate location and size in each of the instances of the Sprite class - the size and location will be determined by your conditional groups
      3. Add each Sprite class instance to the screen

      * Write another function that uses WHILE to:

      1. Create 8 instances of the Sprite class
      2. Draw any color circle at 0,0 that has a diameter of 25 in each of the instances of the Sprite class
      3. Set the y property of each Sprite class instance to 200
      4. Set the x property of each Sprite class instance to i*50
      5. Add each Sprite class instance to the screen

      * Call each function

      I have no idea...