Assignment 1 EvenQueue

Assignment 1 EvenQueue - CS 580 Client-Server Programming...

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

View Full Document Right Arrow Icon
CS 580 Client-Server Programming Spring Semester, 2010 Assignment 1 © 2010, All Rights Reserved, SDSU & Roger Whitney San Diego State University -- This page last updated 1/20/10 Assignment 1 Due Jan 29 23:55 1. Create a EvenQueue class that has the methods enqueue and dequeue. The enqueue method throws an exception when its one argument is not an even integer. When its one ar- gument is an even integer, the integer is placed on the queue. When dequeue is called on an empty queue it returns null. Add your code your Mercurial source code repository. Your Even- Queue class can use collections classes from your languages class library. 2. Modify your queue in 1 to throw an exception when dequeue is called on an empty queue. Add this modiFed code to your source code repository. 3. Modify your queue in 1 to ignore arguments of enqueue that are not even integers rather than throw an exception. Check your code in as a second branch to your source code reposi- tory from your commit in problem 1. This branch does not contain the changes made in part 2. 4. Merge the two branches in your repository to create a queue that meets the requirements of
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 10/15/2011 for the course CS 580 taught by Professor Rogerwhitney during the Spring '11 term at Community college of RI.

Page1 / 2

Assignment 1 EvenQueue - CS 580 Client-Server Programming...

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