Next: Shuffling and sorting
Up: Assignment 11: Arrays of
Previous: Assignment 11: Arrays of
In Chapter 11 there are several methods that I sketch but don't fill
in completely. You should type them in and clean them up:
- 1.
- Type in sameCard and test it. Make sure
you are clear on the difference between shallow and deep
equality. If not, ask.
- 2.
- Use the code in Section 11.6 to write a method called
buildDeck that creates and returns a fully-populated array
of cards.
- 3.
- Write a method called printDeck that takes
an array of cards and prints them one per line.
- 4.
- Type in and test findCard.
Allen Downey
1999-11-16