subject

Basically, you will run your program as this: java wc your program should count the number of lines and the number of times each word/character is used. a word can be either an identifier or a number. • an identifier is defined as a letter followed by a sequence of letters or digits ('a'..'z', 'a'..'z', or '0'..'9'). identifiers are case insensitive ("aa00", "aa00", "aa00", and "aa00" are the same). identifiers are separated by non-letter and non-digit characters. • a number is defined as a sequence of digits ('0'..'9') that are not in an identifier. different sequences represent different numbers. for example, number "001" is different from number "1". numbers are separated by identifiers or non-letter and non-digit characters. it should first output the number of lines, words, and characters. after that, it should output the five most used characters, the five most used numbers, and the five most used identifiers as well as the number of times these characters/numbers/identifiers are used. since identifiers are case insensitive, the program only outputs identifiers with lower case letters. the characters, numbers and identifiers should be output in the descending order based on the number of times they are used. when two characters happen the same number of times, the character with a smaller unicode value should be considered as being used more frequently. when two identifiers/numbers happen the same number of times, the identifier/number that occurs earlier in the file should be considered as being used more frequently. when printing characters, invisible ones should be output in unicode value, except for tab ‘\t’ and newline ‘\n’. try to create your own data structures to keep the information, and do not directly use standard java collections. inefficient implementations are surely ok (no points will be docked), so that later you may appreciate the use of these collections more.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
What is one way in which tablets differ from laptops and notebooks? tablets are designed for touch-based interaction. tablets are designed to be used as desktops. tablets are designed for input via a keyboard and mouse. tablets are designed to be larger than laptops.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
You know the right answer?
Basically, you will run your program as this: java wc your program should count the number of lines...
Questions
question
History, 28.09.2019 05:50
question
Geography, 28.09.2019 05:50
question
Mathematics, 28.09.2019 06:00
Questions on the website: 13722363