<p>Write ReadZILLA a program that will read a file called <strong>message.t
ID: 3634218 • Letter: #
Question
<p>Write ReadZILLA a program that will read a file called <strong>message.txt</strong> 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> </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;kRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.