COP 4331 (5862/99S)
Assignment 2: O-O Analysis
SLOTE: A Simple Line-Oriented Text Editor
Description
SLOTE, as simple line-oriented text editor is to support at least the following
commands.
-
list n1 n2
-
list all lines between n1 and n2, inclusive
-
insert n s
-
insert the text s (which may contain spaces) before line n
-
cut n1 n2
-
Remove all lines between n1 and n2, inclusive, and place
them into the paste buffer
-
copy n1 n2
-
Copy all lines between n1 and n2, inclusive, and place them
into the paste buffer
-
paste n
-
paste the contents of the paste buffer before line n
-
search s
-
Print all lines containing s
CRC Cards
Prepare CRC cards providing an object-oriented description of SLOTE.
Teams
You may work on this with a partner (recommended) or individually.
If you work with a partner, submit a single copy of your work with both
names on it.
What to submit
-
Submit the CRC cards, either on paper or appropriate size index cards.
If on paper, limit yourself to a 4x6 area of the sheet for each side of
the CRC card.
Last Update: 11 Feb 1999 by R.Levow