xt contains a large number of English Language words, one per record. Write a program that uses this file to implement a simple

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

A file words.txt contains a large number of English Language words, one per record. Write a program that uses this file to implement a simple word checker. First, read all the words into a collection. Then, using this collection find the average length of all the words and write this number to the console.


Finally, using a text file that contains written English paragraphs, the program should examine each word of each line and output to the console all the words that are not in the collection as potentially misspelled words.  Write to the console how many words in this text file are above the average length of the dictionary words computed above.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT