Write lisp function to reverse order of the elements in list

Assignment Help Programming Languages
Reference no: EM1360427

1. Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

2. Write a Lisp function that given an atom and a list will replace the first element in the list with the single element.

Write a Lisp function that takes as input an atom and a list. The function determines whether any element of the list matches the atom - If it does not match then the first item of the list is replaced with the atom, otherwise the original list is returned.

Write a Lisp function that: given an integer determines whether the integer matches a "held" number. If there is a match it evaluates "OK" otherwise it evaluates "less than" or "greater than" depending on the relationship between the integer and the "held" number

Write a Lisp function that: computes factorial.

Write a Lisp function that: given an integer "n" generates the first "n" Fibonacci numbers.

Reference no: EM1360427

Questions Cloud

Determine the components of the capital account : Determine the components of the capital account in the balance of payments? and estimate the components of the current account in the balance of payments?
Supposing that utilitarian test is ungeneralizable : Supposing that is ungeneralizable and which of these options pass(es) the utilitarian test.
Estimate value of a new venture : A venture capitalist wants to estimate value of a new venture. The venture is not expected to produce net income or earnings until the end of year five when the net income is estimated at $1,600,000.
Create a job description from the job analysis : Explain your method of collecting the information for the job analysis and create a job description from the job analysis.
Write lisp function to reverse order of the elements in list : Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).
Find the force constant of the spring : assume the roller coaster (h1 = 34 m, h2 = 10 m, h3 = 20) passes point A with a speed of 2.00 m/s. If the average force of friction is equal to one sixth of its weight, with what speed will it reach point B? The distance traveled is 45m.
Discuss a real world example that could or has already : Discuss a real world example that could, or has already, caused a shift in either the AD (aggregate demand) or SRAS (short run aggregate supply) curves for the US economy, or some other country.
Determine the present value for the venture : The LowTec Company is about to begin producing and selling its prototype product. Annual cash flows for the next five years are forcasted as:
Behavioural-based interviews : Based on the list of behavioural based questions that are listed on the following link, do you think there are any weaknesses to this type of interview?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd