CS130 - 2/9/2011

  1. news?
  2. How to make an Applet
    1. make new project (File/New Project)
    2. select Java, Java Application
    3. uncheck main class, check main project (put it where you wnat it saved)
    4. New File, Swing GUI, JApplet
  3. PS - solve a simpler, but similar problem; e.g. high hurdles, baseball
  4. Lab 3
  5. Repeating an indefinite number of times (picking up all the coins at a corner, moving forward until you find a wall)
    1. recursion
    2. iteration
  6. Ruby is going treasure-hunting. She starts at home. She is allowed to search on the first 15 corners. On each corner, if there is a coin there will be a trove of 5 coins 10 steps north (she should go and collect them!). When she finds a wall in front of her she must stop hunting and if there is a coin there climb up on the platform; otherwise go back home.