HW1 1 - handout 3 # CSEl 43-Computer P rogramming l I...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
handout #3 CSE l43-Computer Programming Il Programming Assignment #1 due: Thursday, 10/81091 9 pm For your first programming assignment you are to write a class called Sortedlntlist that is a variation of the Anaylntlist class discussed in lectue (handout #2). The primary differences are that your new class must maintain the list of integers in sorted (non- decreasing) order and that it will have an extra option to speciff that the numbers should be unique. The new class should have the same public methods as the old class except for the two- parameter add method that adds a value at a particular index. Because we want to keep the list in sorted order, we won't allow the client to speciff where something should go, so this method should not be a public method of the new class. Two of the methods should be rewritten. The single-parameter add method should no longer add at the end of the list. It should add the value in an appropriate place
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online