Tuesday, May 31, 2011

LAST CLASS MUST DO CHAPTER 6

The fancy/complicated looking 
code basically calculates the distances between our object and the other object in the x and y coordinates. So it creates the gravity stuff between them. 


From this chapter, I was so surprised about the Pythagoras theorem is being USED in computer greenfoot! 
OMG. 
The computer used the Pythagoras theorem to calculate the distance between the two objects! 
OMG 

and GUESS WHAT? 
the computer also uses Newton's formula to calculate the strength of the force 
Hahahahaha


I also learned that as you changed your gravity, 
the gravity from 5.8 to 9.8, l noticed that the planet moved faster than it did when the gravity was 5.8 

When I changed the vector from Vector(0, 1.0) to new vector(32, 12.0)
I can totally notice that something was different but I don't know what is different.... 
like I think there is something different going on but I don't know exactly what it is. 
So like, I realize the sun(the big yellow one) 


and GUESS what .
you can add music! meaning noise... ahha 


Lalalala... Doing Chapter Six xoxo

Dear Mr. D
Hi Mr. D! GUESS WAT?! I AM DOING GREENFOOT CHAPTER SIX XOXO! 
From Yejun XOXO Glossily Gurl ♥


Stop with the XOXO love letters, (hahaha)


CHAPTER SIX IS REALLY REALLY LONG. 
So I am thinking to do only up to 6.10 out of 6.12... It's gonna be fine. right? 

At home

At home, doing green foot chapter 6.! 


I better call Michael for help . . .. . . 

Tuesday, May 24, 2011

The second last class

Today was a bit of confusion day... mostly because I was deciding what to do between makinga video for Mr. Harvey or greenfoot chapter 6. 

So for like an 40 minutes, I went out and filmed Mr. Harvey. 
But now I chose to not make the video. 
reason1. I don't have a great plan 
reason2. lack of time. Since I am going to ISST for the whole week, I won't be able to edit it fast enough 
reason3. Since I really want to go to the AP class next year, I want to finish chapter 6

so yeah. 
BTW, Mr. D, can you send me a mail to the school councilor about me being in the AP class nxt year? thanks! 

Sunday, May 22, 2011

D-6

I worked on Greenfoot as usual. Since I finished chapter 5, I went on chapter 6. (Since 6 is after 5) 


Chapter 6 is about gravity in space. 
So basically, we are making gravity in Greenfoot! 


How the gravity is going to work in Greenfoot is by the rocks. 
So in chapter 6 scene, there are random circle rock looking things. And they apparently have gravity in them. (meaning that the rocks won't collide) and we are going to make them (rocks) move in RanDOm directions and make them float around like gravity. 


And On Friday, at the talent show, I thought the dance was amazingly funny :) AND NIVES was the only girl there lol.... which means... I am also going to be the only 'girl'

Tuesday, May 17, 2011

D-7

Okay today is tuesday 
and I am still on the piano chapter 5 


I did it together with Anna :) 
so far, I managed to add all the white keys with the sound playing. I just need to add the black key. 
It looks like I need to make a new class and copy and paste all the codes I used for the white key piano. 


And I did it :D
I am happy :) There are three tricks to do this. 
1. in the piano class, you make the same black keys as you did to the white keys
the "W" "E" and other random keys are the letters on the keyboard. 
so when you press the W on the keyboard, it will make 3c# sound. 


so that is number one. 
make the black keys at the piano class 
next is that. you make the same sound (like how you make it)

D-8

this was when the blogger didn't work so I will skip that day

Thursday, May 5, 2011

D-9

Sometimes, I hate Greenfoot because there are many ways you can write a code and have the same results. 
For example, writing a code to make sounds when you press a keyboard. 


AND GUESS WHAT 
I FIGURED OUT SOMETHING TOTALLY COOL. 
AND MOST-KNOW-FACT FOR DOING THE PIANO CHAPTER 


AND IT IS......!!!!


THE KEY CLASS AND THE PIANO CLASS ARE DIFFERENT!
THE PIANO CLASS USES THE KEY CLASS! 


ahhhhhhhhh


hahha
those are my surprise faces.
SO yeah
okay
so I went to the piano class and added


        addObject ( new Key ("g", "3a.wav"), 300, 180);

which made a 'a' sound when the g key was pressed.


now, the book told me a new method called
with loop 
it sounds cool.
what the loop thing does is that they do a similar task repeatedly
I then learned the local variable

I want to know what
 super(800, 340, 1);
this statement means.
WHAT DOES YOU MEAN
:P


D-10 till the last class


The reason why I am writing D-11 and D-10 as my title, is because I am not counting the class to end, it's because I want to finish chapter 6 by that day. 
another lame joke
"Why did the foot say to the other foot?"
'Ha ha! we are both Green!"
and that's how Greenfoot started... 
AHHH DON'T THROW STONES AT ME 

ahh okay so! I am on chapter 5 now, about the pianos. 
5.3 : Abstraction: creating multiple keys 
and the why we are doing this is because they all react to the same keyboard key and all produce the same note
btw, I think this book author is a funny guy because 
"When writing computer programs, writing code that can solve one very specific task- such as finding the square root of 1,764 or playing a middle-a piano key sound- is well and good..."

ahha his funny~ 
okay so I won't get any distracted :P 

I hate it when they show you the staring of a solution instead of the whole solution
so I need to add sound to each key... eww...

but I don't get it 
alsjdnfikbewhu




but I asked Mr. Daley and he helped me a lot 
so I can do it now! 
... 

Tuesday, May 3, 2011

D-11

so . 
firstly, I would like to thank Mr. Google for helping me out 
HA! (I pressed undo like 5 times and I got it :P)
okay 
so like most of my problems were fixed
and the funny fact is that Michael fixed the problem differently from what the textbook said to do. So like it's really ... weird. 
The main problem was that I wrote the same code twice...
I actually did delete one of the code and did it but it didn't work 
so really. weird. 
so I shall continue chapter 5. 
Secondly, I would like to point out that today is the Holocaust memorial day. So I urge you to have your own time to think about the Jews and the history that should NEVER repeat again. 

Now, lets continue with the piano thing 
I am in the part where I produce the sound for the key 
first, I thought when I press G on the keyboard, I thought the sound will play 
but it turns out that you have to right  click the piano and click play. (which is kinda. bit. annoying)
oh the next step is to play the sound when the keyboard is pressed! 
oh so it's not only me who was annoyed of pressing that key again. 
okay I see. 
it told me to add play(); BUT 
WHERE DO I ADD THAT CODE
ugh... 
looks like I am going to do some figuring out agian :{ (a man with a mastage)

Sunday, May 1, 2011

Why aren't computers smart enough?

I am doing greenfoot the part where I animate the key


stupid 
greenfoot's yellow highlighter 


UGH 


it says


"can not find symbol- variable is down"


why can you not find the symbol?
seriously Greenfoot. 
I know you can do that.