Question: The program will then create a new file based on the name that the user entered, and that file will contain the contents of

The program will then create a new file based on the name

The program will then create a new file based on the name that the user entered, and that file will contain the contents of the words vector in the Message class. Recall that this vector contains the words that are now encrypted. Therefore, main() should call the show Words function in the Message class to print the contents of the words vector to the screen and then call the makeFile function in the Message class to create the file and print the contents of the vector to the file. After the file is created and its contents are displayed to the screen, the Main Menu should be redisplayed. The new file contains the following encrypted message. HBZ YHBZGR POQUJ TYB BU ALINGN AHTDQWRE UL MOG GHUW MOG DPVYFOZ VVUW MOG PPTD UL W VW BU XHZLJ TZ BA BZ BU ALINGN ZPDW NZ MOQK WHG HBZ WHQDA UYMSF TUL YVZYKVR NZ HBZ MYMKRAFTIS TZ PL YVZYKVR MOME MOIL MYMKRAFT TNIAPSG NZ TUL ELIV NZ GVB BUBG MLUHVA JSN UBB WLTAXEE NZ YYWE XCQD YVZ MOQFG BZ MOM DPVYFOZ MOM IVEWT TUL MOM ZSWJA YVZ CMJ TUL XCMJ TTMF Vigenere Cypher Main Menu 1 Encrypt File 2 Decrypt File 3 - Quit Selection: Option 2-Decrypt file When the user selects option 2, he or she should immediately be prompted to enter the name of the file to be decrypted: [Note that the file name can contain spaces.] Enter the name of the file to decrypt: The Lords Prayer (Encrypted).txt Your program should open the file and read its contents into a character array using the getline function. As soon as the file's contents have been read into the character array, main() should print the contents of the array to the screen. HBZ YHBZGR POQUJ TYB BU ALINGN AHTDQWRE UL MOG GHUW MOG DPVYFOZ WVUW MOG PPTD UL WV VW BU XHZLJ TZ BA BZ BU ALINGN ZPDW NZ MOQK WHG HBZ WHQDA UYMSF TUL YVZYKVR NZ HBZ MYMKRAFTIS TZ PL YVZYKVR MOME MOIL MYMKRAFT TNIAPSG NZ TUL ELIV NZ GVB BUBG MLUHVAG JSN UBB WLTAXEE NZ YYWE XCQD YVZ MOQFG BZ MOM DPVYFOZ MOM IVEWT TUL MOM ZSWJA YVZ X CMJ TUL XCMJ TTMF Next, using the strtok_s function as described above, tokenize the entire message into separate words. As each word is tokenized, call the decryptWord function in the Message class (using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!