2012年12月6日星期四

Last class

This is the last class. Overall, I think this course is very interesting that I have learnt of lot of new things that I have never learnt before. I will miss this class.
I plan to review the whole things after this week.I will read all the class notes and history materials. I hope i will get a high score. 

2012年11月18日星期日

Figure out

 I did figure out how to make Drracket do it 'the long way'.  I used the recursive definitions we learned in class to make racket take the sum of the bottom layer of a pyramid then work its way up. It was pretty straight forward and looked like this
(require picturing-programs)
(define (sum n) (/ (* n (+ n 1)) 2))
(define (vol n)
 (cond
   [(equal? n 1) 1]
   [else (+ (sum n) (vol (- n 1)))]))

2012年11月11日星期日

This week

This week we learned what is posn and how to use it in a program through the ebook. Though  it was very hard and difficult.

2012年10月28日星期日

TUT-FIVE


This week's quiz was on operations and conditions. I was used to substrings way back when I was programming in JAVA.

The "last-half" function is what stumped me. This function is supposed to show the last half of a word. The problem is the definition of "half." If a word had an odd number of letters, I had to decide if I should round up or round down the number of letters

(ex. "bunny" -> "bun" /  "bu")

It was a relatively easy quiz, although the conditions part of the tutorial was really odd.

For example, a function had to determine if two words were "greater" than each other. At first, I thought it was determined by the number of characters a string had, but I was wrong. It was actually based on alphabetical order. By that logic, "b" is greater than "a."

This also got me thinking that this logic would be useful later for organizing words in alphabetical order.

Work with Wikipedia

AFTER I known that we will work on Wikipedia, I thought it was easy. However, I know that I was wrong. So I started work with learn more.I learnt how to place an inline citation using ref tags from learn how page. I want add some footnotes for this article. How to create a footnote? I learnt that I have to use <ref>…</ref>syntax at the appropriate place in the article text which means I have to add this syntax before and at the end of the sentence. I also learnt several rules for adding the citation, such as text-source integrity, particularly contentious. From learn how, as well as I learnt how to create the list of citations. I will use "reflist"
when I want to add a list of citations. So I want to try what I learned in the article "the relationship between China and Philippines. I searched some sentences in google from this article, and then I found several articles talk about the China relations with Philippine.And some of this article are reliable source I think. It is because some of these article comes from official websites, such as ASEAN-China Centre, Philippine consulate general shanghai. I think some of these source can be add as citations. Then I learnt that what kinds of sources can be use as secondary sources. Now I am very clear about how to identifying reliable source."The source included the work itself(like a document, article, paper, or book) the creator of the work (for example, the writer), and the publisher of the work (for example, Oxford University Press). All three can affect reliability." Therefore, I can based on these three rules to judge the article which is reliable or not.

2012年10月19日星期五

Say Hi

This is my first blog post and I just want say that I am really buzy in this week. It is because I have two term tests and two quizs. Both of tests are very difficult and hard to me. I am the frist year student here and study in Rotman commerce. In this term, I choose this course because I really like use computer to make something, such as PS, make a video. In the class, I learnt a software named Dr.Racket. I will show some programs in next weeks.