Spring08_BonusQuiz-Solution-dsf

Spring08_BonusQuiz-Solution-dsf - CS1316 Spring 2008 Bonus...

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

View Full Document Right Arrow Icon
CS1316 Spring 2008 Bonus Quiz Solution NAME: ___________________________________ PRISM ID:_______________________________ Part I: Grading TA Who is your grading TA? (Circle one). Brian Daniel Joel John Ricardo Sean Tyler Victoria Part II: Code Writing [40 pts] You may use the following code as a guide to help you answer the question: Remember you can also use any of the following methods from ContactList : public void add(ContactNode contactToInsert) insert a new node into the list public boolean insertAfter(ContactNode node, ContactNode contactToInsert) insert a new node after the specified node public boolean delete(ContactNode node) delete a node from the list public int size() return the number of elements in the list public ContactNode last() returns the last node in the list as well as the getters and setters from ContactNode Section I: Write a method to get the middle node Even Odd First write a new method in ContactList that finds and returns the middle node in the list. If the
Background image of page 1

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

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

This note was uploaded on 01/30/2010 for the course CS 1316 taught by Professor Staff during the Spring '08 term at Georgia Tech.

Page1 / 2

Spring08_BonusQuiz-Solution-dsf - CS1316 Spring 2008 Bonus...

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