Description
1. Write a program that prompts the user to enter a text file name and displays the number of vowels and consonants in the file. Use a set to store the vowels A, E, I, O, and U.
2. Write a program to read a text from a text file. A text file is passed as a command line argument, word are delimited by whitespace characters, punctuation marks (,;.:?), quotation marks (‘”), and parentheses. Count words in case-insensitive fashion (e.g.,consider Good and good to be the same word). The words must start with a letter. Display the output in alphabetical order of words, with each word preceded by its occurrence count
Reviews
There are no reviews yet.