Chat with us, powered by LiveChat AI Coding Assignment | WriteDemy

LISP

Context/overview:  Common Lisp is an object-oriented , functional programming language frequently used for resolving AI problems. In addition, CLISP is an ANSI  Common Lisp implementation.

Resources to consult:  

CLISP-Web site: http://clisp.org/

Sourceforge: CLISP an ANSI Common LISP download: https://sourceforge.net/projects/clisp/

Paul Graham’s Lisp page: http://www.paulgraham.com/lisp.html

Specific questions or items to address:  

Specific questions:

Visit the Sourceforge web site, and download appropriate version of CLISP  for your machine.

Install the CLISP on your machine by following installation instructions provided in the lecture section

Use your favorite editor  (Emacs, notepad, etc)  and edit (write) the code   for the problems provided below.  Once the code is edited, fully debug the code, and then compile it  

To load the code, use the load command:

User (1)☹load “c:lisptest.lisp” )

To compile the code, one that is fully debugged, use the following command:

User (2)☹compile-file “c:lisptest.lisp” )

Problem 1: Exponential function

Assume that  both  B(base),  and e (exponent)  are  non-negative integer numbers. Implement the function power  that  calculates the B for the  given E.  Enter your function definition into a text file. Then load it into LISP. Execute the function for the values (power 3 3).   

Take a screenshot of the execution, and  paste it into MS word document.  Provide the appropriate  description of the screenshot.

Additionally, attach and submit your Notepad file into the assignment dropbox.

Problem 2: Calculating Fibonacci Series

The Fibonacci sequence is a sequence of numbers in which each successive number in the sequence is obtained by adding the two previous numbers in the sequence.

If we know that  :

Fib(0)=1

Fib(1)=1

Fib(n) = Fib(n-1) + Fib(n-2) for n>1

Implement the  function Fib that calculates Fibonacci sequence for given n

Enter your function definition into a text file. Then load it into LISP. Execute the function for the value (Fib 5).   

Take a screenshot of the execution, and  paste it into MS Word document.  

Additionally, attach and submit your Notepad file into the assignment dropbox.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Place Order” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order