博文

目前显示的是 十二月, 2017的博文

Advices to the student beginning CSC104! (due on December 1st)

图片
What advice would you give to a student beginning this course about (a) how to design a function, and (b) how to prepare for this course? ( a ) HOW TO DESIGN A FUNCTION 😑 I think it is not difficult to write functions, you need to be patient and careful when you try to design a function.  1. State the name of the function.      For example, the name of the following function is "god".     2.  Write out the header of the function.        For example, the header in that function definition is: (god x).   3. State the the parameter.       For example, the parameter in that function is "x".   4. Write out the body of the function.       For example, the body of that function definition is: (rotate 45                                                                                                       ( above x x).   5. Draw arrows from the parameters/place-holders in the header to their usage in the body.