Professional Documents
Culture Documents
Assignment 4 Definitions
Assignment 4 Definitions
SCHEME: DEFINITIONS
A. Evaluate the following scheme expression below and construct the parse tree accordingly:
a. Given that π = 3.1416 and r = 2.3m
i. Define π in scheme programming as constant
ii. Define r in scheme programming in meters
iii. Define circumference scheme programming in meters
iv. Derive an application expression to compute the Area of a Circle in meters
v. Derive an application expression to compute the Area of a Circle in miles
vi. Construct a parse tree for iv and v.