Define a function, record, which takes a list of strings, fields, and a list of values, values,

Question:

Define a function, record, which takes a list of strings, fields, and a list of values, values, and returns a procedural representation of record. Write a second procedure, lookup, which takes a procedural representation of record and a string and returns the ith element of the list values if i is the index of name in list fields. For example:image

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: