You must use the neighbour field mutator functions to

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: , you need only provide one example and one test. Complete the Scheme function part-B which modifies the state variables from their values in part-A to the values indicated in the following diagram. The function part-B consumes no parameters and produces (void). You are not allowed to use any make-neighbour calls in your solution to part-B or to declare any new variables. You must use the neighbour field mutator functions to make any needed changes. Assume that part-A works. We will test your solution to part-B using a correct version of part-A. When following the design recipe for this question, you need only provide one example and one test. 2 CS 116 Fall 2012 Assignment 04 Due at 4:00 pm Monday, October 15th x make-X 10 y neighbour 20 before r value 500 after -1 50 s neighbour before value after t 250 lambda (lambda (x) (+ x 1)) 2. Write a Scheme function called swap-posns that consumes two posn struct...
View Full Document

This document was uploaded on 01/19/2014.

Ask a homework question - tutors are online