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 letters/symbols 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, letters_symbols, secret]= Decoder(inString)
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.
letters_symbols: 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 letters_symbols, however, with the symbol to letter conversion as used above. There should only be letters in this output.
For example:
inString="456f354#5755rst @96876x!m439846pl@";
[numbers, letters_symbols, secret]= Decoder(inString)
numbers =
"456354575596876439846"
letters_symbols =
"f#rst @x!mpl@"
secret =
"first example"

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!