CS130 - 2/9/2011
- news?
- How to make an Applet
- make new project (File/New Project)
- select Java, Java Application
- uncheck main class, check main project (put it where you wnat it saved)
- New File, Swing GUI, JApplet
- PS - solve a simpler, but similar problem; e.g. high hurdles, baseball
- Lab 3
- Repeating an indefinite number of times (picking up all the coins at a corner, moving forward until you find a wall)
- recursion
- iteration
- 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.