Monday, April 28, 2008

Tutorial 2 - Supplementary - Problem 2



Problem 2:


  • You are given some Alice code. Run it and see what happens.

  • But the code is all written in the World.my first world method.

  • Your boss wants to you put all the code into separate methods.

  • You need to break the code into smaller methods without changing anything in the original code.



(Question: How many methods should you create?)