Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. (a) Read an input file of English text, one word at a time. The file should consist of about 500 words. Each student must
1. (a) Read an input file of English text, one word at a time. The file should consist of about 500 words. Each student must select their own file. Some example files are AncientRome . txt and JuliaRobinson . txt, posted on the Blackboard. (b) Keep only the words, removing any punctuation or other characters. (c) Store the words in an STL vector, call this OriginalMessage. (d) Create an encrypted text for each word as follows: shift each character in the word in a cyclic manner by a few places. As an example a could change to d. (e) Store the encrypted words in another STL vector, EncryptedMessage. (f) Print out the two vectors OriginalMessage and EncryptedMessage. (g) You must use the STL vectors as specified above. (h) Additional notes: . You may utilize the posted codes ExampleSTLVector . cpp and ExampleRe- movePunctuation . cpp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started