[solved]-Word Encoder Part 1 10 Points Write Simple Program Used Create Encoded Messages Hiding Let Q39026619
Word Encoder
Part 1 (10 points)
Write a simple program that can be used to create encodedmessages by hiding the letters of words within a pseudorandomstring. Your program will need to accept an integer key (which willdetermine the positions to hide letters within the string) and aword to be encoded. For instance if the key entered by the user is3, and the word to encode is “cat”, then the letters of the word”cat” would appear every third character within the encoded string,the other letters of the string should appear to be gibberish. Weare providing you with a string of pseudorandom characters that youmust use to select the characters that are not part of the hiddenword. This is the string:
const string RANDOM_CHARS = “naidf7298qwrf$$NF*@Bsghlaef51@3syvbg05jbalsjgas5ac245ff&*lasgaoygf334dbaljhc%Dd”;
Using this string, and the example we gave above (with a key of3 and an input string of “cat”) the encoded string would be”nacidaf7t”. Notice that if you read off every third letter of thisresult you find the word cat, and that the other letters are simplythe letters from the RANDOM_CHARS string inserted in the “gaps”between the characters of the actual message. When encoding a wordyou should always begin pulling pseudorandom letters from thebeginning of RANDOM_CHARS. You can assume that our test cases willnever use a key and word combination that will cause you to run outof letters from the RANDOM_CHARS string.
Part 2 (15 points)
Now extend the program so that after encoding a word it will askthe user “Would you like to encode another word?(y/n)”. If theyreply ‘y’ then the process should repeat (possibly many many times)until they respond with ‘n’, at which point the program shouldprint “Thank you for using the encoder!” and then exit
in C++
Expert Answer
Answer to Word Encoder Part 1 (10 points) Write a simple program that can be used to create encoded messages by hiding the letter… . . .
OR

