Question: Write a java program using methods that reads a given text file, outputs the text as is, and prints the number of lines and the
Write a java program using methods that reads a given text file, outputs the text as is, and prints the number of lines and the number of times each letter appears in the text. An uppercase, letter and a lowercase letter are treated as being the same: i.e., they are tallied together. Since there are 26 letters, use an array of 26 components to perform the letter count. You also need a variable to store the line count. The text is stored in a file called text.txt and is given below. The output should be stored in a file called textCh.out. Use the IntClass in this program. Input: The file containing the text to be processed. Output: The file containing the text, number of lines, and the number of times a letter appears in the text. Print out both input and output files along with your source code. The contents of text.txt: Today we live in an era where information is processed almost at the speed of light. Through computers, the technological revolution is drastically changing the way we live and communicate with one another. Terms such as "the Internet," which was unfamiliar just a few years ago, are very common today. With the help of computers you can send letters to, and receive letters from, loved ones within seconds. You no longer need to send a resume by mail to apply or a job: in many cases you can simply submit your job application via the Internet. You can watch how stocks perform in real time, and instantly buy and sell them. Students regularly "surf" the Internet and use computers to design their classroom projects. They also use powerful word processing software to complete their term papers. Many people maintain and balance their checkbooks on computers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
