Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, Machuco127
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
image
Computers and Technology, 23.06.2019 17:00, Need1ng
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
image
Computers and Technology, 24.06.2019 02:10, ttangelique
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
image
Computers and Technology, 24.06.2019 12:30, nomood
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
Do you know the correct answer?
Basically, you will run your program as this: java wc your program should count the number of lines...

Questions in other subjects:

Konu
English, 18.06.2020 01:57