Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions

Question

Is telemedicine useful during a pandemic?

Answered: 1 week ago