[SOLVED] 代写 DrRacket ; CSC104Fall 2019Exercise1

30 $

File Name: 代写_DrRacket_;___CSC104Fall_2019Exercise1.zip
File Size: 414.48 KB

SKU: 1275748237 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


; CSC104Fall 2019Exercise1
; Print this out and filled it in by hand. Hand in your solutions to the TA at the start of your quiz.
;2 Marks
; For each definition, circle either Function or Variable according to whether it is a function definition or a variable definition.
; If it defines a variable, write down the variable name. If it defines a function, write down the function name and parameter names. ; With one mistake, this part is worth 1 of 2 marks. For more than one mistake, this part is worth 0 out of 2 marks.
; UTorID :
; Surname : ; Given Name :
define s z y textjoin z y
; Defines a: Function Variable ; Variable or Function Name:
; Parameter Names if any:
define b d c above d c rotate d 45
define i square 10 solid black
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define
width animage 100
width animage
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define x g
rotate above x x
45
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define removebottom animage abottom
imagetop animageheight animage height abottom
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define x b i j
; Defines a:
Function
Variable
define f textjoin
b
b
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define rick
rick
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define bottom cutbottom kids
1
; Variable or Function Name: ; Parameter Names if any:
; Defines a:
Function
Variable
; Variable or Function Name: ; Parameter Names if any:
define sun scale 3
height kids 2
; Defines a:
Function Variable
; Defines a:
Function
Variable
; Variable or Function Name: ; Parameter Names if any:
; Variable or Function Name: ; Parameter Names if any:
define i raise
above i flip triangle width i
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define anothergoodnumber2 52
; Defines a: Function Variable
; Variable or Function Name: ; Parameter Names if any:
define b x ytextlength y x
; Defines a: Function Variable
; Variable Name if applicable:
; Function Name if applicable:
; Parameter Names if applicable:
define scaledbird amount
scale
; Defines a:
amount
Function
Variable
; Variable or Function Name: ; Parameter Names if any:

;2 Marks Circle the expressions that produce an error
; We assume you check your work in DrRacket.
; With one mistake, the total mark for this part is 1 out of 2. With two or more mistakes, the total mark for this part is 0 out of 2.
aligntops 1 23 4
shrink
anticlockwise
1 23 4
alignrights
scaleheight .5
above

taller
beside
rotatealigntops

;2 Marks Show the steps to evaluate the following expression
; We assume you check your work in DrRacket, but will overlook one mistaketypo unless it simplifies the rest of the work too much.
; With two typosmistakes, the total mark for this part is 1 out of 2. With three or more typosmistakes, the total mark for this part is 0 out of 2.
; Do not include the ! Steps !, , northat DrRacket shows when using step . ; Include the underlining of subexpressions that will change.
; Start by underlining each part of the given expression that will change first.
mirror beside clockwise taller filledtriangle150 10 rotate above circle0 4010
square30 15
2 1 5height wider circle 10 3 5
.5

;2 Marks Evaluate each of the following expressions, and write down the value beside it.
; We assume you check your work in DrRacket, but will overlook one mistaketypo.
; With two typosmistakes, the total mark for this part is 1 out of 2. With three or more typosmistakes, the total mark for this part is 0 out of 2.
unary? 123 circle width 5.6 number?
true
rotate function?
67.8
image? square
boolean?
function? rectangle
number? height
number?function?

image? image?
function? function?
boolean? image?
number? pi
boolean? boolean?
image?
boolean? false
function? boolean?
number? 67
image? true
unary? scaleheight binary? filledoval function? pi binary?
unary? binary?

;2 Marks Show the steps to evaluate each of the following expressions
; We assume you check your work in DrRacket, but will overlook one mistaketypo.
; With two typosmistakes, the total mark for this part is 1 out of 2. With three or more typosmistakes, the total mark for this part is 0 out of 2.
; Do not include the ! Steps !, , northat DrRacket shows when using step . ; Include the underlining of subexpressions that will change.
; Start by underlining each part of the given expression that will change first.
image?1 2 3
number? circle 10
boolean?45
function? flip
image? rectangle 20 10
number?10 2
boolean? unary? aligntops
function? image? 1.2
image? image? mirror

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] 代写 DrRacket ; CSC104Fall 2019Exercise1
30 $