Write a scheme function that computes the volume

Assignment Help Computer Engineering
Reference no: EM131295964

1. Find definitions of the scheme function EVAL and APPLY and explain their actions.

2. What does the following Scheme function do?

(define (y s lis)

(cond

((null? Lis' () )

((equal? s (car lis)) Hs)

(else (y s (cdr lis)))

) )

3. What does the following Scheme function do?

(define (x lis)

(cond

((null? lis) 0)

((not (list? (car lis)))

(cond

((eq? (car lis) #f) (x (cdr lis)))

(else (+ 1 (x (cdr lis))))))

(else (+ (x (car lis)) (x (cdr lis))))

4. Write a Scheme function that computes the volume of a sphere, given its radius.

5.  Write a Scheme function that takes a simple list of numbers as a parameter A and B and returns a list with the largest and smallest numbers in the input list.

6. Write a Scheme function that takes a list as a parameter and returns a list identical to the parameter except the last element has been deleted.

7. Describe how a multiple-processor machine could be used to implement - resolution. Could Prolog, as currently defined, use this method?

8. Write a set of rules for family relationships, including all relationships from grandparents through two generations. Now add these to the facts of Problem 3, and eliminate as many of the facts as you can.

9. Write the following English conditional statements as prolog-headed Horn clauses:

a. If Fred is the father of Mike, then Fred is an ancestor of Mike

b. If Mike is father of Joe and Mike is the father of Mary, then Mary is the sister of Joe.

c. If Mike is the brother of Fred and Fred is the father of Mary, then Mike is the uncle of Mary.

10. Using the structures parent (X, Y), male (x), and female (X) , write a structure that defines mother (X,Y).

11. Using the structures parent (X, Y), male (x), and female (X) , write a structure that defines sister (X,Y).

Reference no: EM131295964

Questions Cloud

Record of daily cash transactions in a text file : Question 1: A store owner keeps a record of daily cash transactions in a text file. Each line contains three items: The invoice number, the cash amount, and the letter P if the amount was paid or R if it was received.
What is a literature review : What is a literature review? What should be included in a literature review? Locate and provide a good literature review in your area of interest, and discuss its strengths and weaknesses.
Describe the role of each career : Describe the role of each career and explain what makes that profession different from the others. You can include, but are not limited to, factors such as education and experience requirements, services rendered or products offered, licensure, pa..
Segments in the absence of congestion : Assume that every TCP segment is 1 Kbytes and that a TCP connection begins with a 64- Kbyte congestion threshold. How many TCP segments have to be acknowledged before the congestion window reaches 100 segments in the absence of congestion?
Write a scheme function that computes the volume : Write a Scheme function that computes the volume of a sphere, given its radius - Describe how a multiple-processor machine could be used to implement - resolution. Could Prolog, as currently defined, use this method?
Give a good background regarding immuno suppressive therapy : Give a good background regarding Immuno suppressive Therapy. Do not include the information from the internet if it is not from an authentic scientific research paper or journal or from a newspaper.
Determine the monthly payment : Add a new field named LoanPayment using the Expression Builder. Insert the PMT function to determine the monthly payment for a 2-year loan, paid monthly, with a 5% yearly interest rate.
Managing telecommunications software engineering : Using the algorithms, programming languages, managing telecommunications software engineering, managing corporate information resources, and managing partnership-based information technology (IT) operations topics covered in this unit, discussion..
How can nurses encourage patients to make immediate : Using the Health Belief Model,how can nurses encourage patients to make immediate and permanent behavior changes; particularly as they relate to lifestyle choices?

Reviews

len1295964

11/30/2016 6:45:58 AM

Detailed Question: The problems of each chapter that are CIRCLED are to be completed: There are 6 problems and 5 small programming excersises Chapter Problem Set Questions* Programming Exercises 15 2,9,10 1,6,8 16 2,4,5 1,2

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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