- Make the shark chase program use a recursive method. Do this by modifying the World.chase method.
- Create a world with two animal objects. Write a recursive method so that the animals count from 1 to 20 with one animal saying the odd numbers and the other animal the even numbers.
- Suppose you have an array (ArrayVisualization) of 10 bugs. Write a method that swaps successive pairs of elements, i.e. the first element with the second, the third with the fourth, etc. You should use a loop and variables to do this.
- Spend a little time filling in the Course/Lecturers CATEI surveys - you should have received an email about it. There are probably many things that can be improved. Remember, these surveys are totally anonymous. Have no fears about stating what you think, just try to make it constructive.
Week 12 Lab
October 11th, 2009 · No Comments
Tags: Lab
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
You must log in to post a comment.