;; The first three lines of this file were inserted by DrRacket. They record
metadata
;; about the language level of this file in a form that our tools can easily
process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname |pset-01-starter (2)|)
(read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-
decimal #f #t none #f () #t)))
;; DO NOT PUT ANYTHING PERSONALLY IDENTIFYING BEYOND YOUR CWL IN THIS FILE.
;; YOUR CWLs WILL BE SUFFICIENT TO IDENTIFY YOU AND, IF YOU HAVE ONE, YOUR
;; PARTNER
;;
(require 2htdp/image)
(require spd/tags)
(@assignment psets/pset-01);Do not edit or remove this tag
;; If you are:
;; - A 110 or 107 student replace the first set of '???'s with your cwl.
;; For problem sets, If you have a partner, please replace the second
;; set of '???'s with their cwl. Remember this, it is what you will
;; do with these @cwl annotations for the whole course.
;; - A UBC Extended Learning student, replace the first set of ??? with
;; your email address as confirmed in the email you received from
;; extended learning. The handin password is also in that email.
;; Remember this, it is what you will do with these @cwl annotations
;; for the whole course.
;;
(@cwl gurkerat)
;; *****************************************************************************
;; NOTE:
;; For lecture starters we want you to submit to handin several times during
;; the lecture. Submit your file even if pressing the "Check Syntax" button
;; produces an error. For lecture we want to see the progression of your
;; work.
;;
;; But for problem sets and labs you should not submit your file if Check
;; Syntax produces an error. Fix the error first, then submit.
;; *****************************************************************************
(@problem 1)
;;
;; Write the BSL expression that most clearly represents the following
;; arithmetic expression:
;;
;; 3^2 + 6 * (6 - 10) / 3
;;
;; which equals 1
;;
;; There is a single BSL expression that both produces the correct result,
;; and most closely matches the structure of the equation given above.
;; Although 1 is an expression that evaluates to 1, that is not the
;; correct answer, because it doesn't show the structure of the expression
;; above.
;;
(+ (sqr 3) (/ (* 6 (- 6 10)) 3))
metadata
;; about the language level of this file in a form that our tools can easily
process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname |pset-01-starter (2)|)
(read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-
decimal #f #t none #f () #t)))
;; DO NOT PUT ANYTHING PERSONALLY IDENTIFYING BEYOND YOUR CWL IN THIS FILE.
;; YOUR CWLs WILL BE SUFFICIENT TO IDENTIFY YOU AND, IF YOU HAVE ONE, YOUR
;; PARTNER
;;
(require 2htdp/image)
(require spd/tags)
(@assignment psets/pset-01);Do not edit or remove this tag
;; If you are:
;; - A 110 or 107 student replace the first set of '???'s with your cwl.
;; For problem sets, If you have a partner, please replace the second
;; set of '???'s with their cwl. Remember this, it is what you will
;; do with these @cwl annotations for the whole course.
;; - A UBC Extended Learning student, replace the first set of ??? with
;; your email address as confirmed in the email you received from
;; extended learning. The handin password is also in that email.
;; Remember this, it is what you will do with these @cwl annotations
;; for the whole course.
;;
(@cwl gurkerat)
;; *****************************************************************************
;; NOTE:
;; For lecture starters we want you to submit to handin several times during
;; the lecture. Submit your file even if pressing the "Check Syntax" button
;; produces an error. For lecture we want to see the progression of your
;; work.
;;
;; But for problem sets and labs you should not submit your file if Check
;; Syntax produces an error. Fix the error first, then submit.
;; *****************************************************************************
(@problem 1)
;;
;; Write the BSL expression that most clearly represents the following
;; arithmetic expression:
;;
;; 3^2 + 6 * (6 - 10) / 3
;;
;; which equals 1
;;
;; There is a single BSL expression that both produces the correct result,
;; and most closely matches the structure of the equation given above.
;; Although 1 is an expression that evaluates to 1, that is not the
;; correct answer, because it doesn't show the structure of the expression
;; above.
;;
(+ (sqr 3) (/ (* 6 (- 6 10)) 3))