Question: Can someone help me with a C++ code: The CIA has contracted your services to write a program to decode the numeric messages they have

Can someone help me with a C++ code:

The CIA has contracted your services to write a program to decode the numeric messages they have intercepted. They have noticed that each message consists of a list of integers ending with a -100. The CIA have also determined that the integer 50 corresponds to the blank space character and integers 0 through 39 are valid integers. The characters that integers 0 through 39 correspond to are given in the starter code through an array. Any integer, positive or negative, other than -100, 50 and 0 through 39 in the message can be ignored.

Your program will be run once for each message to be decoded. First, print out the contents of the array. Then read in the intercepted message, decode it and output the decoded message.

For example, if the sample input to your program is:

1 11 50 33 37 31 -8 11 50 30 29 8 50 0 29 50 38 29 46 37 31 50 9 29 28 11 39 29 31 21 25 -100

your programs output should be:

be sure to. do your homework!

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 Databases Questions!