a5q1 - ; The first three lines of this file were inserted...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
;; The first three lines of this file were inserted by DrScheme. They record metadata ;; about the language level of this file in a form that our tools can easily process. #reader(lib "htdp-advanced-reader.ss" "lang")((modname a5q1) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #t #t none #f ()))) ;; CS Assignment 5 Question 1 ;; Ru Wang r46wang 20319247 ; ;; a5q1 ;; State variables ;; a, b, c, d, f: (void) ; (define a (void)) (define b (void)) (define c (void)) (define d (void)) (define f (void)) ; (define-struct X (posn1 posn2)) ;; X is a structure that contains 2 posns. ; ;; a5q1 - (a) ;; myworld1: (void) -> (void) ; ;; this function does not consume nor produce anything. (consumes void and produces void) ; ;;Effects: ;; changes a to 'm ;; changes b to 12 ;; changes c to the first posn in X, which is (make-posn 115 116) ;; changes d to the same posn and c. ;; changes f to the second posn in X, which is (make-posn 115 116).
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/21/2010 for the course CS 116 taught by Professor T.vasiga during the Fall '09 term at Waterloo.

Page1 / 3

a5q1 - ; The first three lines of this file were inserted...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online