Entries from July 2009
Do the following exercises from the textbook and show your code to the tutor:
Circling Fish, Ch 2 Ex 4
Magnet Fun, Ch 2 Ex 6
Helicopter Flight, Ch 4 Ex 4
Use methods where appropriate. Make sure you add comments to your code to explain any unclear parts.
[Read more →]
Tags: Lab
The two student worlds from my lecture today:
Tennis, by Michael Chu
Basketball, by Jeremy Chan
As well as being interesting stories, both these assignments show very good design and code readability. It’s worth reading through the code and imitating their style.
[Read more →]
Tags: Uncategorized
Tutorial questions
Questions for discussion in group:
List three ways in which a class (3D model) is similar to a blueprint for a house.
Can you have more than one object of the same class in the same world? Why or why not?
Is the centre of an Alice object always located at its centre of mass? Justify your answer.
Describe each [...]
[Read more →]
Tags: Lab