Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

4. EMC Corporation

Answered: 1 week ago

Question

6. Vanguard

Answered: 1 week ago