Question: Using Common Lisp create the following functions a. goodbye : It should print bye, good bye, farewell or some other word. b. middle-name : Accepts

Using Common Lisp create the following functions

a. goodbye: It should print bye, good bye, farewell or some other word.

b. middle-name: Accepts a full name as an argument and returns the middle name. This name can be represented as a list. For example, if you execute the program by entering (middle-name (Mary Jane Doe)) the output should be Jane.

c. second-of-second: Accepts a list of lists as an argument and returns the second element of the second list. For example, if you run the function by entering (second-of-second ((a b c) (1 x) (e f))) the output should be x.

d. repeater: You have the option of 1) printing the text of our choice a set number of times or 2) letting the user specify the number of times to print the text in an argument. You will receive more points for level of effort if you successfully complete the second option.

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!