Up: Preparatory Tasks and Exercises
Previous: Your First Programming Steps
Being a programming implies that you do not only have to write your own code,
but that you must be able to understand code written by other.
- Download the code of SecondClass.
- Import it into BlueJ.
- Unfortunately you just received badly documented code. Nevertheless
you have to find out what the code does. In this case, the only option
is to use trial and error. Run the code a couple of time to find out what
it is doing.
- Document the code so that everybody is able to understand the code.
- Adapt the code of secondMethod in such a way that the sequence is printed
out in reverse order.
- Write a method that generates the third power a given number.
- Write a method that generates a sequence of all third powers of odd
Marina De Vos