Question: Written in scheme/racket create the following functions - 1)Count - Write a procedure counts variables (represent values) and a lists as arguments and returns the

Written in scheme/racket create the following functions -

1)Count - Write a procedure counts variables (represent values) and a lists as arguments and returns the number of matching characters in said list

> (count 'A '(A A B C C A B A A B)) which would return 5

2) List-value Write a function List-val that takes a list as its argument and returns the total number of points that the bucket is worth.

> (list-val '(A B C C A B B A A)) returning 14

where A =1 B=2 C=3

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!