Question: Write a program that prompts the user to enter a file name and display the occurrences of each letter in the file. Must use exceptions.
Write a program that prompts the user to enter a file name and display the occurrences of each letter in the file. Must use exceptions. No Hashmap. Use scanner class.

Write a program that prompts the user to enter a file name and display the occurrences of each letter in the file. Must use exceptions. Letters are not case-sensitive. Here is a sample run: Blue Terminal window lab09a Options Enter file name lab 09 a-data .txt The occurrence of A's is 11 The occurrence of B's is 2 The occurrence of C's is 10 The occurrence of D's is 9 The occurrence of E 's is 34 The occurrence of F's is 2 The occurrence of G's is 1 The occurrence of H's is 15 The occurrence of I's is 12 The occurrence of J's is 6 The occurrence of K's is 2 The occurrence of L's is 12 The occurrence of M's is 4 The occurrence of N's is 12 The occurrence of O's is 28 The occurrence of P's is 8 The occurrence of Q's is 0 The occurrence of R's is 19 The occurrence of S's is 21 The occurrence of T's is 29 The occurrence of U's is 12 The occurrence of V's is 1 The occurrence of W's is 4 The occurrence of X's is 0 The occurrence of Y's is 4 The occurrence of Z's is 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
