BU CAS CS 113
Introduction to Computer Science II with Intensive C
Fall 1997


HW4 FAQ


Last Modified: Thu Oct 16 14:47:42 1997
Q. Don't you need to turn the turtle 150 degrees at teh start of the Koch snowflake, not 120 degrees like you said in the assignment?

A. You are correct. I have since fixed the home page.

120 degrees is the amount to turn at each corner once you get going. The initial angle to turn (from facing north) in order to go down the right side should be 150 degrees. See below (best I can do with ascii picture):



                |
                |
               / \ 150
              / | \
             /  |  \   
            / 30|30 \   
           /    |    \   
          /     |     \   
         /             \   
        /               \   
       /              60 \   
      /___________________\
                           \
                       120  \
                             \


Q. May we add additional functions to the Koch snowflake shell?

A. You not only may, you probably SHOULD. Remember, this is top-down design. I have given the highest level of decomposition, you may feel free to decompose further.


Q. For the game of life, do the number of rounds to simulate or display include t=0 ? (Does t=0 count as a round in each case?)

Example:

 
#rounds to sim = 4
#rounds to display = 2
Which rounds (t=?) should it display?

A. Yes, always print the round for t=0. In your example, print rounds t=0 and t=4.


Q. For hw4-madlib.c, what are the names of the files we are supposed to use to read and write the madlib?

A. You can just test your program with "make -k test" or you can type in the caroll.txt file as it appears in the book. There are no "output files" to write since output goes to the screen, unless you use a temporary output file as suggested by the book, in which case you choose its name yourself.