Unformatted text preview: , you need only provide one example and one test. Complete the Scheme function partB which modifies the state variables from their values in partA to the values indicated in the following diagram. The function partB consumes no parameters and produces (void). You are not allowed to use any makeneighbour calls in your solution to partB or to declare any new variables. You must use the neighbour field mutator functions to make any needed changes. Assume that partA works. We will test your solution to partB using a correct version of partA. 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 makeX 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 swapposns that consumes two posn struct...
View
Full Document
 Winter '14
 the00

Click to edit the document details