[solved]-Ve Struggling Alot Working Data Structures Drracket M Hoping Get Help Solving Question 4 Q39084587
I’ve been struggling alot with working with data structures inDrRacket. I’m hoping I can get some help solving question #4

4. Letter Translation. People have been using encryption to send messages secretly for thousands of years. The Caesar Cipher is named after Julius Caesar, who used it to keep messages secret even if the messenger was captured (or a spy). The concept is simple: each letter is replaced with another letter. A translation table is a list that indicates which character substitutes for another character. (define-struct sub (src dst)) ; ; a Sub is a (make-sub Char Char) (define rot-ate (list (make-sub #a #t) (make-sub #t #le) (make-sub #le #a))) For example, rot-ate is a translation table that replaces #a with #t, #t with #e, and #e with #a. Exercise Write a function (translate word cipher), which consumes a Str and a (listof Sub). It returns the Str that results from translating all characters in word using the translations described by cipher. Any characters that occur in word but not in cipher should be included unchanged in the output. For example, (translate “can this be hard to read?” rot-ate) => “ctn ehis ba htrd eo ratd?” Show transcribed image text 4. Letter Translation. People have been using encryption to send messages secretly for thousands of years. The Caesar Cipher is named after Julius Caesar, who used it to keep messages secret even if the messenger was captured (or a spy). The concept is simple: each letter is replaced with another letter. A translation table is a list that indicates which character substitutes for another character. (define-struct sub (src dst)) ; ; a Sub is a (make-sub Char Char) (define rot-ate (list (make-sub #a #t) (make-sub #t #le) (make-sub #le #a))) For example, rot-ate is a translation table that replaces #a with #t, #t with #e, and #e with #a. Exercise Write a function (translate word cipher), which consumes a Str and a (listof Sub). It returns the Str that results from translating all characters in word using the translations described by cipher. Any characters that occur in word but not in cipher should be included unchanged in the output. For example, (translate “can this be hard to read?” rot-ate) => “ctn ehis ba htrd eo ratd?”
Expert Answer
Answer to I’ve been struggling alot with working with data structures in DrRacket. I’m hoping I can get some help solving question… . . .
OR

