Write the simplest program possible in Java containing your 'main' and any other functions you may need that will: A. Read a sequence of words up to a maximum of 64 words from std input. No other prompting or input is needed. Store the words into a primitive array - do not use advanced structures like vectors, arraylists, lists or maps. B. Check to see if there any duplicate words in the input read. C. If there are no duplicates, print out to std output the message 'No Duplicates'. D. If there are duplicates, print out on separate lines each word that is duplicated and the number of instances of that word. The results should be sorted in ascending order. E. If you write helper functions to your main, ensure that all input and output happens only in main. F. Take screenshot of your program execution with the following samples. G. Your program will be tested with and should display the output below

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write the simplest program possible in Java containing your 'main' and any other functions you may need that will:

A. Read a sequence of words up to a maximum of 64 words from std input. No other prompting or input is needed. Store the words into a primitive array - do not use advanced structures like vectors, arraylists, lists or maps.

B. Check to see if there any duplicate words in the input read.

C. If there are no duplicates, print out to std output the message 'No Duplicates'.

D. If there are duplicates, print out on separate lines each word that is duplicated and the number of instances of that word. The results should be sorted in ascending order.

E. If you write helper functions to your main, ensure that all input and output happens only in main.

F. Take screenshot of your program execution with the following samples.

G. Your program will be tested with and should display the output below

Sample Inputs
Expected Outputs
THE RAIN IN MAINE.
No Duplicates
THE RAIN IN MAINE IN THE
IN 2
MONTH OF MAY.
THE 2
The rain in Maine in the month of
in 2
May.
Maine 2
May 2
The rain in Maine in the month of
May makes May the rainiest
month for Maine in the year.
in 3
month 2
the 3
Transcribed Image Text:Sample Inputs Expected Outputs THE RAIN IN MAINE. No Duplicates THE RAIN IN MAINE IN THE IN 2 MONTH OF MAY. THE 2 The rain in Maine in the month of in 2 May. Maine 2 May 2 The rain in Maine in the month of May makes May the rainiest month for Maine in the year. in 3 month 2 the 3
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY