Question: Your goal is to develop a program to analyze words entered by the user. User enter word to be stored in a collection.Your program should

Your goal is to develop a program to analyze words entered by the user. User enter word to be stored in a collection.Your program should get the word from the user. While developing this program you should use collection framework in Java. You should use atleast 2 collection type class.

Your program should display the following outputs:

Print each word entered by the user

Total Number of words entered by the user

List of distinct words and Number of distinct words entered by the user

You should print words in alphabetical order

SAMPLE OUTPUT:

Number of words entered by the user: 30

Number of distinct words entered by the user:10

List of Words:

Algorithm 3

Course 1

Program 10

Process 14

Student 2

Directions:

Construct the Java program according to standards

Grading:

10% Naming and Comments.

10% Inner class usage (atleast 1 inner class)

20% Abstract and Interface usage (atleast 1 abstract and 1 interface)

20% Collections usage (atleast 2 collection class)

40% OutputValidation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!