CIS 294 Homework	Three			Assigned February 5, 1997

As stated on the syllabus, all of the programming assignments combined are worth a total of 30% of your final grade.  This assignment will be worth 12 points, or 20% of the 30% for all the assignments.  This assignment is to be done individually.

I.	Programming assignment:  (12 points)

Due:		February 26, 1997  (same day as your midsemester exam)

User specifications:

Use VB 4.0 to develop a word processor application that will allow the user to be able to:

1. input the maximum amount of text for a text box object (64 KB), which will wrap text automatically and use scroll bars.  The user must receive a message (via error trapping) warning if a file is too large.  (MS Notepad does this with files that are too large.)
 
2. italicize, underline, and bold the entire document via menu commands.
 
3. cut, copy and past selected text via menu commands.
 
4. change font style and font size of the entire document via menu commands.
 
5. print the entire document on the default printer via menu commands.
 
6. make all caps or all lower case for the entire document via menu commands.
 
7. count the number of words in the document (space, comma, tab, period, and carriage return delimited) via a menu command.
 
8. change the color of the background and the color of the text of the document.
 
9. allow the user to search for certain text strings, and do a global replacement (if the user wishes to) with another text string via menu commands.
 
10. open existing documents, save them as the same or different, and keep track of the last four documents that were opened and display them under the "File" menu command.
 





Program requirements:

1. You must center all forms on the screen using a common procedure.
 
2. You must use a control array for the menu to be able to capture the last four documents for easy opening (just like MS Word does).
 
3. You must use common dialog boxes for Open, Save, Color, Font, and Print (see page 318).
 
4. You must have an "About" dialog that is modal and gives a brief description of who you are and what your program does.  (Place this under the Help menu item where it usually goes.)
 
5. Your documents must use the .txt extension.  This means that when you open a document, it will be looking for this extension, and the documents that you save will get this extension automatically.
 
6. You must use menu commands that comply with the user specifications.
 
7. You need to provide a way to exit the program gracefully.  (An Exit menu command is a good idea).
 
8. You must use proper naming conventions for forms and controls (see appendix B).
 
9. You must create an executable file (.EXE) and use the Setup Wizard to submit the assignment on disk(s) to me.

Points will be deducted for the following:

1. failing to meet the above specifications and requirements
 
2. failing to meet the proper program submission/documentation requirements