Answered You can hire a professional tutor to get the answer.

QUESTION

Read in a code one character for each ofthe letters ofthe alphbet. Next. read in a message. Entode the message using the (ode. Repeat. For

C++ | Read in Code.

Can ONLY use While, If, Else.

Can NOT use BREAK, FOR, CASE.

1) Print "Enter the code: "

2) Take user input for code.

3) Make sure there are not less than 26

4) One character for every letter of alphabet

5) Output the code as shown

6) Print "Incoming message: "

7) Take user input for code

8) Print "Coded message: "

9) Encode the Message then Print it.

10) Print "Do you want to play again (Y/N)?

11) Take user input if they do or do not want to play again

EXPECTED OUTPUT

  • Attachment 1
  • Attachment 2
Read in a code" one character for each ofthe letters ofthe alphbet.Next. read in a message. Entode the message using the (ode. Repeat. For examp‘e‘. Enter the code: QiERTYUJOPASDFGHUKLZXCVBNM The code is:mmmmmmmmmmmmmmmmmmmmmmmmmmIncoming message: Aacn EFG: HIZI! (Dded lESSagE: WEI? TV": I“)! Do you want to play again (YIN)? N ALSO] You have to check that there are enough characters in the code. For example: Enter the (ode: [WE CmE IS ENTERED WHICH IS LESS THAN 26 (HARAETERS]The mde is nut big enough! Do you want to play again (YIN)? Y [CENTINUIE]
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question