CSE 111, Fall 2000

HW #11: TEXT EDITOR

Do Biermann, p. 63, #4: Design, write, compile, and test (and debug, if necessary) a Pascal program that provides an "insert space" command for our text editor.

Test it using a main program like the ones we have been using for "insert" and "delete". ("inserttest.p" and "deletetest.p" are on the Web for you to download and modify for this purpose.)

Turn in your program + either 2 sample runs or a bug report.

DUE: AT THE START OF LECTURE: WED., NOV. 29








































HW #11 EXTRA CREDIT: MULTI-PURPOSE TEXT EDITOR

Do not attempt this until you have correctly solved HW #11!!

Design, write, compile, and test (and debug, if necessary) a single Pascal program that can accept any of 3 commands:

Use the code from lecture for i and d.
Use your code from HW #11 for s.

Test your program using a main program like the ones we have been using for "insert" and "delete".

Turn in your program + 4 sample runs (one for i; one for d; one for s; one for an illegal command to show that your program does not crash if the user accidentally fails to input i, d, or s).

No bug reports will be accepted; your program must run to get extra credit.

DUE: AT THE START OF LECTURE: WED., NOV. 29



Copyright © 2000 by William J. Rapaport (rapaport@cse.buffalo.edu)
file: 111F00/hw11.13nv00.2.html