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

  Pseudocode for linear search by using clrs3e style

Write pseudocode for linear search by using CLRS3e style used in, which scans through the sequence, looking for v.

  Build a student record managing system application

Build a student record managing system application

  Draw a gui to create objects

Draw a GUI that will create the objects and provide access to each object's processing methods. Use the drawing tool in Microsoft Word.

  Design logic for application for company-breakdown-payroll

Design the logic for an application for a company that wants a report containing a breakdown of payroll by department.

  Machine language used by sim virtual computer simulator

Write a program in machine language used by the SIM virtual computer simulator package to calculate the sum of the four numbers stored in memory addresses A1, A2, A3 and A4.

  Generate an object-oriented design for a system

Generate an object-oriented design for a system that keeps tracks of your CD and DVD collection. Identify each of the classes, associated data, and operations for the classes.

  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.

  Define four user-defined exceptions

You will need to define four user-defined exceptions; one for unknown movies, one for unknown member, one for unknown payment method.

  Write techniques to ensure the site content is optimized

All Web pages is as small as possible without affecting the look and feel of the final product. What are some techniques to ensure the site content is optimized?

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Use switch statement to display roman numeral version

Use a switch statement to display the Roman numeral version of that number. Input Validation: Do not accept a number less than 1 or greater than 10.

  Write and test code to create window with green background

Use Processing to write and test code that meets the requirements below. Create a 600x400 window with a green background (using 64 as the "amount" of green to draw).

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