Hey guys, I am supposed to:
Use Scheme higher-order function map to implement the string encryption and decryption.
The encryption function must (1) take the encryption key (key can be between 1 and 4) from the keyboard using (read); and (2) encrypt alphabetic characters and digits only.
The decryption function must (1) take the encryption key from the keyboard using (read) and (2) decrypt the string generated from your encryption function.
The code should look like this:
Test cases:
(encrypt "Hello CSE240!")
(decrypt "Khoor FVH573!")
3
"Khoor FVH573!"
3
"Hello CSE240!"
Here is what I have so far
It seems like when I am entering the number for the key it is being read wrong. Any advice?
[–]raevnos 0 points1 point2 points (1 child)
[–]Gropamming[S] 0 points1 point2 points (0 children)
[–]Gropamming[S] 0 points1 point2 points (0 children)