Question: input.txt about JAVA Java is an object oriented language. Java is focused on being a powerful but simple language, easy to read, with a consistent




input.txt
about JAVA
Java is an object oriented language. Java is focused on being a powerful but simple language, easy to read, with a consistent clear meaning. It is more important that Java programs be easy to read than to write. Graham Hamilton
Problem 1 Statement Write a program that reads a file (input.txt) and produces a histogram of the most frequently used words (all in lower case) found in the text. Ignore capitalization, whitespace, and punctuation. Sort the output in order of increasing usage of words. Words with same frequency can appear in any order. Sample Output 0) Frequency word about 1) Frequency 1 word an 2) Frequency 1 word- object 3) Frequency 1 word oriented 4) requency 1 word focused 5) Frequency 1 word, on 6) Frequency 1 word being 7) Frequency 1 word powerful 8 Frequency 1 word but 9) Frequency 1 word simple 10) Frequency-1 word with 11) Frequency 1 word-consistent 12) Frequency-1 Word E clear 13) Frequency-1 word meaning 14) Frequency-1 word it 15 Frequency-1 word more 16) Frequency word important 17) Frequency word that 18) Frequency 1 word programs 19) Frequency word be 20) Frequency-1 word than 21) Frequency-1 word write 22) Frequency-1 word graham 23) Frequency word hamilton Problem 1 Statement Write a program that reads a file (input.txt) and produces a histogram of the most frequently used words (all in lower case) found in the text. Ignore capitalization, whitespace, and punctuation. Sort the output in order of increasing usage of words. Words with same frequency can appear in any order. Sample Output 0) Frequency word about 1) Frequency 1 word an 2) Frequency 1 word- object 3) Frequency 1 word oriented 4) requency 1 word focused 5) Frequency 1 word, on 6) Frequency 1 word being 7) Frequency 1 word powerful 8 Frequency 1 word but 9) Frequency 1 word simple 10) Frequency-1 word with 11) Frequency 1 word-consistent 12) Frequency-1 Word E clear 13) Frequency-1 word meaning 14) Frequency-1 word it 15 Frequency-1 word more 16) Frequency word important 17) Frequency word that 18) Frequency 1 word programs 19) Frequency word be 20) Frequency-1 word than 21) Frequency-1 word write 22) Frequency-1 word graham 23) Frequency word hamilton
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
