2014-09-15 HW6

posted Sep 15, 2014, 8:37 AM by Samuel Konstantinovich   [ updated Sep 17, 2014, 10:53 AM ]
Notes:
This header is to be included on all submitted assignments
;Last name, First Name
;STUY ID
;MKS21 Period<x>
;DD-MM-YYYY

e.g.
;Smith, David
;1234
;MKS21 Period4
;15-09-2014


HW6:
On the homework server HW6 slot, submit a plain text document with the following:

Answer questions 1 + 2
1. Convert the infix expression to prefix.
 a.   ( 5 - 4 * 2 ) / ( 10 - 5 ) + 3
 b.   ( 2 +  3 ( 4 - 2) / ( 1 - 3 / 5 ) )

2. Evaluate the expressions (show the steps you took line by line) You may verify your result using DrRacket.
 a. ( * (+ 4 7 9) (/ 15 5) (- 3 -1) )
 b. (/ (- 20 -4)   (* -3 2 -1))
Comments