Outline of Class 15: Vectors and Dictionaries
Held: Wednesday, February 11, 1998
- Barry McKeown and Charlotte Abe of Towers Perrin will speak on
"What Does An Actuary Actually Do" Thursday, February 12, 4:30 p.m.
in Science 2413. Refreshments at 4:15. They will also be interviewing
students interested in working for Towers Perrin starting at 7pm.
Please contact Prof. Herman if you are interested in setting up an
- Our Convocation speaker, Prof. Doris Schattschneider, will be having
lunch with students at Grinnell House on Thursday , February 26. Please
send a note to Prof. Herman if you would like to join her for lunch.
- Don't forget that we'll be looking at lessons from
lab 6 today.
- In our implementation of Vectors, we've decided that we'll need to
- Standard methods
- Vector-specific methods
- General design issues
- Just like Bailey and the designers of Java, we've chosen to
disallow "holes" in Vectors and to expand and shrink vectors to
support the insertion and deletion of elements.
- What attributes do we need? So far, we've come up with
- An array that holds the contents of the vector.
- An integer that keeps track of the number of elements in the vector
(we may want to have more spaces in our array than elements in the
- We've also defined two constructors.
- Let's start to think about the various methods we'll need.
- (The outline doesn't cover these issues in detail because Bailey does
a more=than-sufficient job.)