Question: Write a program that prompts the user to enter a filename in the text field and displays the occurrence of each letter in the file

Write a program that prompts the user to enter a filename in the text field and displays the occurrence
of each letter in the file in the corresponding text fields in the GUI when the user clicks the count button.
(50p)
Write a program that reads the contents of a file and creates an exact copy of the file, except that each
line is numbered. For example, if the input file contains the following text: (50p)
'Twas brillig, and the slithy toves
Did gyre and gimble in the wabe;
All mimsy were the borogoves,
And the mome raths outgrabe.
Lewis Carroll
then the output file should appear something like this:
1: 'Twas brillig, and the slithy toves
2: Did gyre and gimble in the wabe;
3: All mimsy were the borogoves,
4: And the mome raths outgrabe.
5 :
Lewis Carroll
he user should be able to enter the names of the input and output files from the keyboard.
Write a program that prompts the user to enter a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!