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 02:30
If you turn on the lock alpha button , what happens
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
Aplan to budget time for studying and activities is referred to as a study routine. study habits. study skills. a study schedule.
Answers: 1
question
Computers and Technology, 22.06.2019 16:30
The most common battery cable terminal is a that provides a large surface contact area with the ability to tighten the terminal onto the battery post using a nut and bolt.
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
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
English, 10.05.2021 18:10
question
Arts, 10.05.2021 18:10
Questions on the website: 13722362