Lab 1

  1. Work exercise 1.1.1 by hand, and then create a program named WhatsIt to test your answer.
  2. Create programs named Diamonds and Cube that draw diagrams like those in exercise 1.1.2. Don't be concerned that the frame created by FrameWindowController is close to 300 by 300, not 200 by 200, in size.
  3. Create and test a program named DrawDiamond that displays a diamond like the one in the first illustration in section 1.2.2.
  4. Do exercise 1.2.1 on paper.
  5. Modify your DrawDiamond program to incorporate answers to exercises 1.2.2 and 1.2.3.
  6. Modify the last program to create a program GrowingDiamond that grows the diamond with each click, as indicated in exercise 1.2.4.
  7. Modify the last program to create GrowingDiamond2 that tests your answer to exercise 1.2.5.