Homework Questions
Due - Wednesday, Dec 1, 2004
- Chapter 7 - R-7.11, R-7.15
Due - Monday, Nov 22, 2004
- Chapter 6 - R-6.1(a-h), R-6.6(a), R-6.12
Due - Wednesday, Nov 3, 2004
- Chapter 4 - R-4.8,
- Write an algorithm for a new stack function which will
return the second element from the top of the stack
without changing the stack. Your algorithm should call
push, pop, and top to access stack elements. (you may not
directly refer to the second-to-top element.)
- Write an algorithm for a new stack function
removeAll. This function takes as input an element,
removes all occurrences of that element from the stack, and
leaves the remaining elements in their orignal order. For
example, assume the original stack was: 10, 45, 6, 77, 6,
6. After the call removeAll(6), the stack will be
as follows: 10, 45, 77. You must use push, pop, and
top to move elements. You may NOT access elements directly.
Due - Wednesday, Oct 27, 2004
- Chapter 4 - R-4.2, C-4.4, C-4.10, C-4.12 (don't repeat for a
doubly linked list), C-4.15
Due - Wednesday, Oct 20, 2004
- Chapter 3 - R-3.22, R-3.23, C-3.20
Due - Wednesday, Oct 6, 2004
Due - Wednesday, Sept 29, 2004
- Chapter 2 - R-2.10, R-2.11
- Design (don't implement) a program to play a card game of
your choice (such as Poker, BlackJack, or Go Fish). Your design
should list a series of classes, the member variables of each
class, and the methods of each class. At least one of your
classes should be a derived class and you should clearly
indicate any methods which are overriden.
Due - Wednesday, Sept 22, 2004
Due - Wednesday, Sept 15, 2004
- Chapter 1 - R-1.1, R-1.4, R-1.14
Sami Rollins