For this week's lecture, we study what von neumann looks like, input, output, shorage and the protection from machine.
We study some simple orders in Dr.Racket.
For example, if we put this oder in Dr.Racket:
; number-hunch : number -> string
; Is n really, really big?
; that is, is it more than 101
(define (number-hunch n)
(cond
[(> n 101) "Oh, it's *really* big"]
[else "Not so big"]))
(number-hunch 5)
(number-hunch 102)
(define (GCD m n)
(cond
[(zero? n) m]
[else (GCD n (remainder m n))]))
(GCD 35 15)
(GCD 15 35)
To run this one, we can get " Not so big" if numer-biunch is 5. The result of both (GCD 35 15) and (GCD 15 35) are 5.
2012年10月27日星期六
2012年10月19日星期五
Wikipedia Part II
This is my plan for wikipedia part 2~~
For the second part of wikipedia assignment, I choose to learn how to fix spelling and grammer. Here is my plan to fix spelling and grammer.
For the spelling, I will correct spelling mistakes and typos carefully.(As wikipedia said I can use spell-checking software.) Also, it is better to write in the form of English. I will check the talk page(Some talk pages may have banners that indicate which spelling is used throughout the article).
For the grammer, I will check the article really carefully and try not to change the meaning when I change the grammer mistake.
Here are some specific things that I will do during fixing spelling and grammer:
*Check that some words which are defined or described should be italicized.
*The head should be noun phrases
*The heading should begin with a single capital letter.
*Check titles of works of art, literature, etc., should be italicized rather than in quotation marks. For example, Zen and the Art of Motorcycle Maintenance.
*Notable exceptions are song titles, short stories, or brief poems, e.g. "Skyfall" or "Someone like you". I will notice that individual episode titles of television series need quotation marks and published works' names should be spelled exactly as published, using symbols and any in-word capitalization as in the original.
*I will check the confusion between its and it's.
*I will check the confusion betwenn their and there
*I will check the confusion between lose and loose.
*Except at the end of a sentence, location constructions such like Toronto, call for a comma after the second element.
*The month day, year, style of writing dates punctuates after the year, which is parenthetical.
*Fuzzy language is not necessary.
*Check unnecessary words and redundant phrases.
*Decade names should not include an apostrophe before the s:
*See also notices should be in a section titled "See also" if relevant to most of the article.
*I will not change the wording, spelling of literal quotations should. However, I can mark clear errors in the original with [sic].
*Items in a list should have no blank lines between the bullet points.
Secondly, we should edit summaries. Summary notes for copy edits should be simple and clear. We should write down whether the edit is correct or we should increase some imformation in it. I can show the small spelling and grammer mistakes by checking the box labeled "This is a minor edit". But for stylistic corrections I will call for written summaries. (Generally, we don't have to write the detailed indormation in edit summaries.)
Further more, I will not use uncivil edit summaries and I can use abbreviated summaries sometimes.
I will also ask people who is good at spelling and grammer to help me check the mistake anmd make it better.
( I learn how to fix the spelling and grammer miskake by http://en.wikipedia.org/wiki/Wikipedia:Basic_copyediting .It writes down some specific imformation about how to change the mistake and teach me a lot. All above shows both my plan and what I have learned from wikipedia "Help Out")
For the second part of wikipedia assignment, I choose to learn how to fix spelling and grammer. Here is my plan to fix spelling and grammer.
For the spelling, I will correct spelling mistakes and typos carefully.(As wikipedia said I can use spell-checking software.) Also, it is better to write in the form of English. I will check the talk page(Some talk pages may have banners that indicate which spelling is used throughout the article).
For the grammer, I will check the article really carefully and try not to change the meaning when I change the grammer mistake.
Here are some specific things that I will do during fixing spelling and grammer:
*Check that some words which are defined or described should be italicized.
*The head should be noun phrases
*The heading should begin with a single capital letter.
*Check titles of works of art, literature, etc., should be italicized rather than in quotation marks. For example, Zen and the Art of Motorcycle Maintenance.
*Notable exceptions are song titles, short stories, or brief poems, e.g. "Skyfall" or "Someone like you". I will notice that individual episode titles of television series need quotation marks and published works' names should be spelled exactly as published, using symbols and any in-word capitalization as in the original.
*I will check the confusion between its and it's.
*I will check the confusion betwenn their and there
*I will check the confusion between lose and loose.
*Except at the end of a sentence, location constructions such like Toronto, call for a comma after the second element.
*The month day, year, style of writing dates punctuates after the year, which is parenthetical.
*Fuzzy language is not necessary.
*Check unnecessary words and redundant phrases.
*Decade names should not include an apostrophe before the s:
*See also notices should be in a section titled "See also" if relevant to most of the article.
*I will not change the wording, spelling of literal quotations should. However, I can mark clear errors in the original with [sic].
*Items in a list should have no blank lines between the bullet points.
Secondly, we should edit summaries. Summary notes for copy edits should be simple and clear. We should write down whether the edit is correct or we should increase some imformation in it. I can show the small spelling and grammer mistakes by checking the box labeled "This is a minor edit". But for stylistic corrections I will call for written summaries. (Generally, we don't have to write the detailed indormation in edit summaries.)
Further more, I will not use uncivil edit summaries and I can use abbreviated summaries sometimes.
I will also ask people who is good at spelling and grammer to help me check the mistake anmd make it better.
( I learn how to fix the spelling and grammer miskake by http://en.wikipedia.org/wiki/Wikipedia:Basic_copyediting .It writes down some specific imformation about how to change the mistake and teach me a lot. All above shows both my plan and what I have learned from wikipedia "Help Out")
2012年10月13日星期六
Week 5
We had the first term test on Wednesday. I felt ok about this test but I still have to pay more effort on it.I have studied computer science for almost a month so far. At the beginning it is a little bit difficult for me to use Dr.Racket to do some orders like how to define a function using design recipe. I felt better after practicing more and learn some basic ideas like Boolean logic and binary system. Specifically, I have to study how to multipy the binary representations of 15 and 19. After the class I know that we can turn 15 to 1111 and turn 19 to 10011.We can multiple 1111 * 10011 to get the result.
I hope that I can have more improvement about compuer by having this class.
I hope that I can have more improvement about compuer by having this class.
订阅:
博文 (Atom)