Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

<p>Write ReadZILLA a program that will read a file called&#160;<strong>message.t

ID: 3634218 • Letter: #

Question

<p>Write ReadZILLA a program that will read a file called&#160;<strong>message.txt</strong>&#160;that contains ten lines of text. The program should determine the total number of words in the text, the number of vowels in each line and the average number of words per line.</p>
<p>&#160;</p>
<p>This is my assignment i need help with :(, i have no idea how to get started. I already wrote the 10 lines of text. I just need help with the rest</p>

Explanation / Answer

please rate - thanks import java.util.*; import java.io.*; public class word{ public static void main(String[] args)throws FileNotFoundException {String filename,input; int lcount=10,vcount=0,wcount=0,totvcount=0; int i,j,k; char ch; char white[]={' ',' ',' '}; Scanner in=new Scanner(System.in); System.out.print("Enter input file name: "); filename=in.next(); Scanner finput=new Scanner(new FileReader(filename)); if(!finput.hasNext()) {System.out.println(filename+" empty-program aborting"); System.exit(1); } System.out.println("FILE STATISTICS"); for(k=0;k
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote