Question: For C++ first year course Read in a code -one character for each of the letters of the alphbet. Next, read in a message. Encode
Read in a code -one character for each of the letters of the alphbet. Next, read in a message. Encode the message using the code. Repeat. For example: Enter the code: QWERTYUIOPASDFGHJKLZXCVBNM The code is: Incoming message: ABCD EFG: HIJ Coded message: QWER TYU: 10p! Do you want to play again CY/N)?N ALSO! You have to check that there are enough characters in the code. For example: Enter the code: [SOME CODE IS ENTERED WHICH IS LESS THAN 26 CHARACTERS] The code is not big enough! Do you want to play again (Y/N)? Y CCONTINUE]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
