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

  Application to print the sum of cubes

Write down the application to print the sum of cubes. Prompt for and read two integer values and print sum of each value raised to third power.

  Creating printstream object using dos

Create a PrintStream object using dos and assign the resulting reference to ps, a PrintStream variable that has already been declared.

  Program to read an employee-s number from keyboard

Write a program that reads an employee's number from the keyboard, number of hours worked and an hourly rate of pay.

  Computing average net profit per sale of product

Your company bought 250,000 online advertising impressions and made average net profit per sale of product of $5.

  Creating message box to display member name

Ddefine for your class is a method to design a message box to display member name, car year and model, and year member joined club.

  Design architecture of system to accept natural language

Using the generic model of a language processing system presented here, design the architecture of a system that accepts natural language commands and translates.

  Write a report on t linux kernel programming

Write a report on  t Linux Kernel programming.  Giving a brief introduction about Linux in general, then give in details information about Linux Kernel Programming.

  Application to convert kilometers in miles

Application will input number of kilometers, compute number of miles, and display number of miles. You will use a constant to store the kilometers-to-miles conversion factor.

  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.

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Design a website to allow calculation of areas

Design a website to permit calculation of areas. A radio button list can be used to allow the user select what type of area to be calculated. Once the selection is done, the input text boxes should be displayed with the proper labels.

  Write application to use random-number to create sentences

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

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