Reference no: EM132210386
You are to write a program name wordcount.java that prompt the user for a user input file name, reads the input words and do the following with those words:
Count the amount of words in the file.
A word can end with any of the following: space (single or multiple).
an EOLN character or a punctuation mark (which will be part of the word).
Count the amount of lines in the file.
Count the amount of alphanumeric characters in the file.
Count the amount of sentences in the file.
Count the amount of vowels in the file - only a, e, i, o, u (lower and upper case) are vowels.
Count the amount of punctuations in the file. You must output the above information both on the screen as well as an output file name "output.txt".