lab5 - 15-121 FALL 2009 [REID-MILLER]LAB 5For this lab, you...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 15-121 FALL 2009 [REID-MILLER]LAB 5For this lab, you will be using "pair programming". You will need to find a partner to work with, and each of you will submit the same lab to blackboard. One person will write a method on the computer, while the other will review each line of code as it is entered and anticipate problems or improvements. You will switch roles for each method. In this lab, you will implement a ListStack class and then write two method for ListStack objects to test your ListStack class. EXERCISESDownload the Stacks.zipproject file discussed in lecture. 1. Create a new class named ListStackthat uses a singly linked list to implement a stack. Your class should implement the LIFOStackinterface so it must include all of the required methods specified by that interface in the project. Your class should throw the same exceptions as the ArrayStack class. Don't forget to write a toStringmethod for the class....
View Full Document

This note was uploaded on 12/19/2009 for the course CS 121 taught by Professor Reid-miller during the Spring '09 term at Carnegie Mellon.

Page1 / 2

lab5 - 15-121 FALL 2009 [REID-MILLER]LAB 5For this lab, you...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online