Question: Write a function called Decoder that takes the input string inString, and performs the following tasks: Separate out the numbers and letters / symbols and
Write a function called Decoder that takes the input string inString, and performs the following tasks:
Separate out the numbers and letterssymbols and put them into two separate arrays.
Use the table above to change the symbols in the array into letters to uncover a hidden message.
The function call is: numbers letterssymbols, secret DecoderinString
The input argument, inString, is a random string scalar including mixed numbers, letters, and symbols.
The output arguments:
numbers: A string scalar that includes all of the numbers in inString with the same order.
letterssymbols: A string scalar that includes all of the letters and symbols in inString with the same order.
secret: A string scalar that includes all of the characters in letterssymbols, however, with the symbol to letter conversion as used above. There should only be letters in this output.
For example:
inStringf#rst @xmpl@;
numbers letterssymbols, secret DecoderinString
numbers
letterssymbols
f#rst @xmpl@
secret
"first example"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
