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, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
To move an excel worksheet tab, simply right-click on it drag and drop it double-click on it delete it
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
Business, 20.02.2020 19:28
Questions on the website: 13722362