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 13:30
Write lines of verse that rhyme to remember the following information: acid rain is a type of air pollution caused by chemicals in the air.
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
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
Mathematics, 09.12.2021 20:30
question
History, 09.12.2021 20:30
question
Mathematics, 09.12.2021 20:30
Questions on the website: 13722363