Previous: 13.5 Summary
Up: 13 Files and the Operating System
Previous Page: 13.5 Summary

13.6 Problems

  1. Write a program that copies one file to another with file names supplied by the command line.

  2. Modify the program in Problem in Chapter to add load and store operations to the student data base program using block I/O.

  3. Modify the program in Problem in Chapter to add load and store operations to the club data base program using block I/O.

  4. Modify the program in Problem in Chapter to add load and store operations to the library data base program using block I/O.

  5. Write a program that serves as a dictionary and thesaurus. A dictionary keeps a meaning for each word. A meaning may be one or more lines of text. A thesaurus keeps a set of synonyms for each word. Assume that the maximum number of entries in the dictionary is 500; there are no more than two lines for a meaning; and there are no more than three synonyms for each word. Allow the user to ask for synonyms, meanings, spell check a text file with repacement of words or add word entries to dictionary. Use files to load and save the dictionary.



Previous: 13.5 Summary
Up: 13 Files and the Operating System
Previous Page: 13.5 Summary

tep@wiliki.eng.hawaii.edu
Sat Sep 3 07:17:28 HST 1994