Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create the following Lisp functions. (Turn in a single script file that can be loaded to implement each of these functions.) 1) large atom: largest
Create the following Lisp functions. (Turn in a single script file that can be loaded to implement each of these functions.) 1) large atom: largest should return the largest value greater than 0 in the list at any level of lists of integers. It should return 0 if the list is empty. Example: (large-atom .((12) 3 ( 2 3 (19)))) 2) biggerthan: biggerthan should return a list where all the integers are bigger than the input integer. Assume lists are a single level of atoms Example: (biggerthan 3 (12345)) (45) 4) evenprod: evenprod should return the product of all the even integers in a list. Example: (evenprod "(1 2 3 4 5)) 8 because 2 * 4-8 Note: an empty list returns 1 5) findname : Given a list of employee lists return the name of the employee with a particular id. Employee list format (name id age) Example: (findname 3 .((bill 2 34) (mary 3 33) (frank 5 53))) mary The script file name should be your last name.Isp krebsbach.lsp for example
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