You are required to develop a program that allows the user to choose either of the following forms of input, as and when required by the user:
* Create a new text file.
* Load any existing file.
The purpose of this program is to take this input and process it to form the following output:
A report of alphabetically sorted words found in the list of inputted words. Associated with each word is a list of line numbers upon which that word occurs in the input text. However note the following points:
* There shall be a maximum of 4 line numbers per line, equally spaced, and it shall be automatically wrapped to a new line as necessary (see the word **the** in the output fie overleaf).
* If a word appears more than once on a particular line in the input text that line number is output only once for that word in the output list. For example the word **text** occurs twice on line 1 of the input text and yet this fact is recorded only once in the output text.
**I can send the original scanned sheets through e-mail
please use lots of comments as I need to understand the program
it has to be done in VB6
It is required that the user can choose, as and when required either of the following forms of output:
* Allow the report to be displayed on screen.
* Allow the report to be saved together with the original input text and the date of creating the report, to a newly created file.
An example is given. Consider the following input text file:
**This is a small example to show an input text file. The output text file that is to be**
**displayed on the screen is shown below****
**should be gap line here
**Note how in this input file an empty line affects the line numbering of the text that**
**follows it. You should also note how numbers such as 1,2 or 12 are handled when**
**output. Note also that no sign of grammar is seen in the output unless it occurs within**
**a word as with for example lot’s or lots’. Finally all notions of identical words that are**
**displayed with different case are indistinguishable in the output.**
This will result in the following output file, when output to the screen:
**1 ** 5
**12 ** 5
**2 ** 5
**a ** 1 7
**affects ** 4
**all ** 7
**also ** 5 6
**an ** 1 4
How this task will be assessed
It is expected that in the demonstration you will be required to enter a few sentences or an existing text file to be provided by the tutor for which the expected results are known. In other words it will be apparent fairly quickly as to whether your program fulfils the requirements.
The numbers should be spaced and alligned.
THIS SHOULD OPERATE IN WIN98 AND WIN2000 AND SHOULD BE DONE IN VISUAL BASICS 6.0