博文

Dec 6th SLOG

      It's almost the end of this term, and I'm about to finish studying CSC104. In this term, I learned a lot from this course. I started from knowing nothing about DrRacket to being able to use DrRacket to do some calculation, to create an image, to do recursions. I had learned java before, but I started DrRacket all fresh. DrRacket made me become more interested in computer science.       I'm happy to give some advice to students who are about to join this course. Firstly, you don't need to worry even if you know nothing about computer science or DrRacket. You would get to start from the very beginning. You will get to know about functions, know about what kind of input will produce the output you are looking for. If you want to prepare for this course, downloading DrRacket is the very first step that you need to do. Then, be creative. There is more than one answer when creating a function. For example, when you want to rotate an image clockwise 45 degrees, you can

studying for final exam

The final exam for CSC104 is next Monday. So far, I've reviewed several topics, for example, "define" "data types" "numbers" "boolean" "image" and some functions like "filter" "apply" "map". Luckily, we just did our tt2 not too long ago, so memories are still fresh. Also, as we just handed in our second project, we used many functions in the project, that was also a way of reviewing the knowledge we learned. When I got stuck reviewing for final exam, I went to the office hour to ask the TAs for help. It actually was much more helpful to just go ask the TAs than struggling by myself.

preparing for TT2

It has been a while since tt2, and we just finished our second project last week. First of all, I want to talk about term test 2, it mainly tested on recursion, which was the part that I considered as the hardest so far. But because of the first project, I became more comfortable with recursion, as the first project used lots of recursions. In order to prepare for term test 2, I gathered with some of my friends who were taking CSC104 to study for the test. I was not quite pleased with my mark for tt2, I would study even harder for the final exam. Secondly, I want to talk about my second project. It was comparatively easier than project 1, so it took us less time to finish it. But the hardest part of the second project was writing the findings from trying to play around with the project. The patterns were easy to be found. Finals are coming pretty soon, I would try to spend more time reviewing for CSC104 and try to do better on my final exam.

Completing our first project

I've been doing our first project this week. The project is actually much harder than I thought it would be.  It requires us to know all the functions that we learned well, for example, we are required to use recursion several times in the project, and we need to know how to check if this string contains any punctuation. This project is totally different from the quizzes and the term test. Unlike the quizzes and term test, it requires us to not only know what the functions mean, it also requires us to know how to combine the functions. It would definitely be much harder if I have to complete the project by myself, but I've been working with my group members. When we got stuck in how to define a function, we searched for methods in the "CSC language manual". The methods, definitions, and examples help us a lot through completing the project. After this project, I feel like I learned more than I thought through this course because I didn't get a chance to actually u

Oct 27th blog

        It has been more than one month since I first got into this course. In this past month, I did several quizzes and a term test. In order to prepare for these quizzes, I went through all the lectures notes that were posted on the CSC104 website and did the practice. The practices were extremely helpful because they were the same types of questions that we were asked in the quizzes, and I did pretty well on the quizzes. Talking about preparing for the tests, I did several past tests that the teacher posted on the website. The past tests perfectly introduced the way the layout of the tests. The past tests covered all the details that we were taught, and well prepared me for the tests.        Through using "beside, above, overlay" and functions "100 triangle "outline" black", "100 square "outline" "black"" to create a picture of a house. This was the first time of me using DrRacket to create a picture, and I was proud of

THIRD WEEK

Another week has passed, during this week of learning in csc104, we got to learn something new, which was condition. Our professor had explained the steps of how it worked quite clear in class, for example, we first define a function (define (f n ) (or (zero? n) (and positive? n) (f (- n 2))))), then we sub in a number for n, (step (f -1)). The function would run as (or (zero? -1) (and positive? -1) (f (- -1 2))))) because 1 does not equal to zero, the first statement would become #false (or #false (and positive? -1) (f (- -1 2))))) because -1 is not positive, (or #false (and #false (f (- -1 2))))) since there’s a #false in the “and” bracket, the whole thing would become false (or #false #false) #false This week’s lesson wasn’t too hard, I prepared for the quiz through doing some practices that were posed on the CSC104 website, they were quite helpful.

Oct 12th preparing for term test

In this week, we don't have any lecture because of the Thanksgiving Day on Monday and the term test on Friday. So instead of learning new staffs, I reviewed the codes we learned before. During my review, I found the "check-expect" and "boolean" most confusing, because, for "boolean", we expected a "#True" or "False" output. While "check-expect" was checking whether the two parts of the body were identical. After few times of practicing with the past tests and exercises, I got more familiar with these two functions. The other code that I got confused with was the rotate degree. When I typed in "rotate 45 an-image", I was expecting to see the image to rotate 45 degrees clockwise. But what I got was the image rotating 45 degrees counter-clockwise. By trying this code sever times on DrRacket, I figured out that it was the rule that rotates a certain amount of degrees was assumed as rotating counter-clockwise certain