subject

For this computer assignment, you are to write and implement an interactive c++ program to scan and process a stream of words of a plain text. your program should start with an empty list of words. (combinations of blanks, tabs, and newline characters to separate words.) after reading each word from the input stream, do the followings: check the word for punctuation marks. if the first letter of the word is preceded or its last letter is followed by punctuation marks, delete them from the word; however, if a word contains punctuation marks in the middle, ignore the letters beyond these punctuation marks. for example, if the word is fish, then the resulting word should be fish; however, if the word is fish_net then the resulting word should be still fish. programming notes: 1. use a map container to store the words, where each word is represented by a pair < string, int > . the first element of the pair, named first, contains the name of the input word, and the second element of the pair, named second, contains its frequency in the input stream. to use a map container in your program, insert the statement: #include in your header file, and to use the functions in the stl, also insert the statement: #include in your header file.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 03:00
Check my work the microprocessor is a(n) circuit, which is designed to process data based on a set of instructions. most desktop and laptop devices contain a microprocessor based on the standard. most tablets and smartphones contain processors based on technology. a microprocessor's circuitry is designed to perform a limited number of tasks contained in its set. during processing, an instruction is loaded into the processor's unit. data is loaded into registers in the processor's where arithmetic and logic operations are performed. microprocessor performance can be measured by its speed. other factors affecting overall processing performance include word size, cache size, and instruction set complexity. most digital devices contain only one microprocessor chip, but today's multi- processors contain circuitry that supports parallel processing. computers contain various kinds of memory. random memory is a special holding area for data, program instructions, and the system. it stores data on a temporary basis until the processor makes a data request. ram is different from disk storage because it is , which means that it can hold data only when the computer power is turned on. computers also contain read- memory, which is a type of non-volatile memory that provides a set of "hard-wired" instructions, called the loader, that a computer uses to boot up.
Answers: 3
question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Q14 what is most important for you to choose before you build a network? a. private network b. nos c. network media d. network protocol e. directory service
Answers: 1
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
You know the right answer?
For this computer assignment, you are to write and implement an interactive c++ program to scan and...
Questions
question
Mathematics, 19.03.2021 19:20
question
Mathematics, 19.03.2021 19:20
question
Mathematics, 19.03.2021 19:20
question
Mathematics, 19.03.2021 19:20
question
Mathematics, 19.03.2021 19:20
question
Mathematics, 19.03.2021 19:20
question
Biology, 19.03.2021 19:20
Questions on the website: 13722363