Question: Use c++ to write a program with requirements below. Your efforts are appreciated. Thank you very much ! Assignment 1 [25 marks] Exercise 1 [20
Use c++ to write a program with requirements below. Your efforts are appreciated.
Thank you very much !

Assignment 1 [25 marks] Exercise 1 [20 marks] Write a cpp program call vigenerecipher.cpp that will perform the encryption step of a Vigenre cipher. First the program will ask for the key then the name of the file that will be encrypted. Your program should not encrypt numbers and should remove all non-letter and non- number characters, this includes newline characters (there should be no newline characters in the encrypted file). A 3 will stay a 3, and a'.' would not be added to the encrypted file. In both cases these will not advance the position in the key. All encrypted letters should be in upper case. You program should print the encrypted message to the console. 1. You must write at least these 4 functions(you may want more ) a. int main() i remember to keep it as short as possible b. char shiftchar(char og, char shift) i. will shift over og by shift (og = 'B' and shift = 'C' will return 'DY C. void getKey(string &key) i. should ask the user for the encryption key d. string getMsg(const string &filename) i. should return a string the contains that whole msg Sample Output Enter your encryption key key what file do you wish to Encrypt? testFile.txt DLCAYGMOZBSUXJMHNSWTQYZCB2PYJCBYKO Where testFile.txtis The quick brown fox jumps over 2 lazy dogs! Submissions Make sure that your code is neat and is well commented (5 marks] Submit to D2L a zip/archive file containing the .cpp you have written
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
