glass
pen
clip
papers
heaphones

Jawaharlal Nehru Technological University Computer Science Worksheet

Jawaharlal Nehru Technological University Computer Science Worksheet

Description

Hello,

Please answer the following practise problems ( 2 3 4 ) in separate documents

Textbook attached below

(2) Practice Problems

Submit a document with the coding solutions you create for these practice problems.
Number your sections to match the question number.

1. p 47 Exercise 1.10

Ackermann’s function

2. p 53 Exercise 1.11

Write a procedure that computes f by means of a recursive process. Write a procedure that computes f by means of an iterative process

3. p 53 Exercise 1.12

Pascal’s Triangle

4. p 71 Exercise 1.23

Smallest Divisor Procedure

==============—-=======================================================

Unit 3 Practice Problems

Please complete exercises 1.31 (A&B), 1.34, 1.40 & 1.41.

============–==============================================================

(4) Practice Problems

Submit a document with the coding solutions you created for these practice problems.
Number your sections to match the question number.

1. p 118 Exercise 2.1

Define a better version of make-rat that handles both positive and negative arguments.

make-rat should normalize the sign so that if the rational number is positive, both the numerator and denominator are positive, and if the rational number is negative, only the numerator is negative.

2. p 121 Exercise 2.2

Consider the problem of representing line segments in a plane. Each segment is represented as a pair of points: a starting point and an ending point….

3. p 122 Exercise 2.3

Implement a representation for rectangles in a plane….

4. p 130 Exercise 2.12

Define a constructor make-center-percent that takes a center and a percentage tolerance and produces the desired interval.

You must also define a selector percent that produces the percentage tolerance for a given interval. The center selector is the same as the one shown above.