This program has stumped me, help! :)
Hey guys, I was trying to help my friend create this textpad java program and I am completely stumped. Can someone get this to work please?
Your program should ask the name of the file to be taken as an
input for reading.
Your program then should read the file and produces the following
output as follow:
Number of vowels in in this file is: (print the number of vowels)
Number of a's is: (print the number of a's)
Number of e's is: (print the number of e's)
Number of i's is: (print the number of i's)
Number of o's is: (print the number of o's)
Number of u's is: (print the number of u's)
The Number of lines in this file is: (print the number of lines)
The Number of words in this file is: (Print the Number of words)
Your program should further print the above summary
in the form of a histogram as follows:
You program should have a separate class that constructs and prints
the histogram
Words : *********************
Lines : ***
Vowels : **********************
a's : ********
e's : ****
i's : *****
o's : ***
u's : **
Try Printing the above histogram vertical.
|