currently im studing CSE 1729 in uconn, and we are learning Schemeand i have no idea on this question”Scheme” Note that strings, like characters, numbers, and Boolean values, evaluate to themselves. 1. Write a SCHEME function (get-count text) which, given a string text computes a list of character counts appearing in the text. Namely, the call (get-count “hello”) returns the list ((# . 1) (#l . 2) (#le 1) (# h . 1)). 2. Write a SCHEME function which, given a list of character counts, returns a list of character frequencies. Namely, a call (get-freq (get-count “hello”)) returns the list ((#o. 1/5) (#l . 2/5) (#e. 1/5) (#h. 1/5)). Show transcribed image text “Scheme” Note that strings, like characters, numbers, and Boolean values, evaluate to themselves. 1. Write a SCHEME function (get-count text) which, given a string text computes a list of character counts appearing in the text. Namely, the call (get-count “hello”) returns the list ((# . 1) (#l . 2) (#le 1) (# h . 1)). 2. Write a SCHEME function which, given a list of character counts, returns a list of character frequencies. Namely, a call (get-freq (get-count “hello”)) returns the list ((#o. 1/5) (#l . 2/5) (#e. 1/5) (#h. 1/5)).
Expert Answer
Answer to currently im studing CSE 1729 in uconn, and we are learning Scheme and i have no idea on this question …