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 06:00
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
question
Computers and Technology, 22.06.2019 10:00
Create a word problem that involves calculating the volume and surface area of a three-dimensional object. cube: surface area 6 s2 , volume s3
Answers: 3
question
Computers and Technology, 22.06.2019 17:00
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
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, 20.02.2020 18:02
question
Mathematics, 20.02.2020 18:02