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

(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.

Last Completed Projects

topic title academic level Writer delivered
© 2020 EssayQuoll.com. All Rights Reserved. | Disclaimer: For assistance purposes only. These custom papers should be used with proper reference.