Need Help Coding Following Problem Java Write Complete Java Program Analyze Text File Dete Q37296741

I need help coding the following problem in Java:

Write a complete Javaprogram to analyze a text file to determine which percentage ofwords are found in Shakespeare’s works. This is done by firstfinding all the unique words contained in Shakespeare, then sortingthem

  1. Declare a simple array of String (not a Collection class)called words with a maximum size of 31,000.
  2. Open the Project Gutenberg text file 100-0.txt which containsShakespeare’s complete works as a single file.
  3. Read each word in the file one at a time.
    1. Convert the word to lower case
    2. Remove all non a-z characters (punctuation)
    3. Search the words array using a linear searchto see
      OR
      OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.