2014年3月28日星期五

csc104 week 4

during this week, due to the quiz I start to know what is filter in the DR Racket means, for example, if there is a list of numbers, like 1 2 3 4 5, if I just want to pick number which are smaller than 4, I could run the program filter, and this will help me to pick the numbers that I want. Not only the numbers, I could also enjoy by picking the image I like. Oh by the way I know how to add the binary right now.

2014年3月23日星期日

csc week 3

During this week, I did a lot of review such as how to convert base ten to base two, and the concept such as what's the map square means, almost stuff was learned by previous week due to we having exam this week. Stuff like how to write check-expect is always big problem for me. There is a big pity that I forget how to adding one base two to another base two, which made me feeling guilty.

2014年3月6日星期四

csc104 week 1

  In this week, basically what I learned is apply the function to the lists, first thing I learned is apply numbers, such as typing "apply + 1 2 3 (list 4)", what you will get is 1+2+3+4 which is 10. Another example, typing "(apply +(map string-length( list "I" "am" "writing" "assignment"))), I will get 20. However, I did get a little confused about the previous stuff about recreating the image, and how to transforming the color to another one. I am going to watch the video again in order to clear understand this.