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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started