Next: 99 Bottles
Up: Assignment 5: Recursion
Previous: Assignment 5: Recursion
- 1.
- Dig out the old multadd project and make sure
you can still compile and run it.
- 2.
- Transform multadd into a fruitful method, so
that instead of printing a result, it returns it.
- 3.
- Everywhere in the program that multadd gets
invoked, change the invocation so that it stores the
result in a variable and/or prints the result.
- 4.
- Transform yikes in the same way.
Allen B. Downey
1999-10-06