(Solved) : Currently Im Studing Cse 1729 Uconn Learning Scheme Idea Question Q42038660 . . .

Scheme Note that strings, like characters, numbers, and Boolean values, evaluate to themselves. 1. Write a SCHEME function

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 …

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us