Question: Write a fortran program to read a string and count the vowels (a, e, i, o, and u). The program should provide a count for
Write a fortran program to read a string and count the vowels (a, e, i, o, and u). The program should provide a count for each vowel and a total count of vowels. The program should ensure that the vowels are counted for both upper and lower-case. Test the program on a series of different input values and verify that the output is correct for those input values.
Assume the input string may be no longer than 1000 characters.
Output shall be a formatted list of the format:
X occurs YYY times.
where X is each of the vowels and YYY is the number of occurrences in the input string.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
