You print out your program and hand it in to me in class. Make sure it is appropriately commented. You also electronically submit your a1 directory which includes both source and executable.Any hints?
cross-productPlace the recursive function in a separate file.
Minimize the use of transcendental functions.
Your job is to write a simple interactive program that draws the recursive Koch curve. (For more background on Koch curves see Ex. 2.6 on page 96 of the textbook.) However, instead of the standard triangular Koch curve you will draw a square Koch curve. At each level of recursion each line segment is replaced by a square Koch curve with a central square whose size is 1/4 of the original length of the line segment. This is illustrated in the images below, each at a different level of recursion:
Revised: Sept 6, 2007