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

  Complete a request for system services

Objectives Complete a Request for System Services form, which triggers the preliminary investigation phase. Analyze a user interview and extract pertinent facts, which can be used to assess project feasibility. Complete a Problem Stateme..

  Design program to asks for number of fat grams

Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories are not less than 0.

  Building airline reservation system

Problem Description The aim of this project is to build airline reservation system. System must give two basic sets of services to an airline: First set of services allows the airline to provision its system.

  Recursive method to search a string for a byrd

Write a recursive method that searches a string for a Byrd. A Byrd has the following properties. Its first character is an 'A'. If it is a two character Byrd then its second and last character is an 'H'.

  Using the irvine32 library functions

Create 32 random points which have (x, y) co-ordinates

  Unix systems administration

Unix Systems Administration

  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.

  Create form to accept an arrival and departure date

Create a form that accepts an arrival and departure date for a reservation from the user and then calculates the number of nights and the total price for the reservation.

  Program to use a stack to represent list of workers

Write a program to simulate this process. Use the following guidelines.- Use a stack to represent the list of workers. Use a queue to represent the list of people waiting to work.

  Design program to ecode message using caesar cypher

Design a program which decodes messages. Messages will be encoded using Caesar cypher, with each letter being decoded by replacing it with previous letter in alphabet.

  Explaining box properties available in css

Browse the Web and choose a site that could benefit from box properties available in CSS. Make a screen capture of the page and indicate how you would change border and spacing properties.

  Program to compute percentage and final grade for students

Write a program which will permit teacher to compute percentage and final grade for students in a class.

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