Showing posts with label repetition. Show all posts
Showing posts with label repetition. Show all posts

Monday, December 20, 2010

In which Pearl forgets...again.

Ah!! Gomen nasai, minna-sama! *bows down repeatedly*
I totally forgot about this blog entry... Please forgive me...
My excuse? Er, well, you see... After school I went to Fairview for a reunion with my classmates (it was a failure, though, because barely anyone showed up). Then I had a headache so I went home. I got home at around four-ish and went straight to bed. Now, uh, I...didn't wake up until...11:30 PM, when my mom was getting ready for bed. She told me to go to sleep, so I did. I woke up at...2 PM the next day. So you see...I didn't even go on the computer for the past three days. I guess I was suffering from sleep deprivation. The past week...I barely got a day of sleep.

So, Friday was the last day of school before Winter Break. It was a half day, so classes were only 45 minutes long. Because of this drastically shortened day (and most likely the fact that it's the last day of school), teachers decided to put away the old teaching handbook (I'm guessing here) and have a relaxed class. In my English and Science classes, we had a small party and conversed with each other. In my French class, Mr. Vretranos gave us a little talk (nothing serious) and we got the rest of the period to chat with our friends.

In ICS, Mr. Arkin gave us another work period. Zarin-dono and I worked on the "Window Edge-Tracer" program. I figured out why the rectangle wasn't going to the last row - it was because I hadn't used the dot-dot option after my put CHARACTER statement. And lo and behold! It was fixed and working perfectly!Until...

Mr. Arkin told Zarin that our if statements should be separate. However, when I did that, the rectangle did not go to the corners of the run window. I need to fix that glitch, and I'm planning to do so over the break.

---This next part does not pertain to computer science at all, so you don't have to read it---

I admit it. The pain of staying away from anime, manga and video games has finally caught up to me, and I'm facing withdrawal symptoms. The past week, because I've been working so hard on editing people's essays and doing my own; as well as the homework from other subjects, I didn't get to read one fanfic, one manga, one doujinshi... I didn't get to watch one crime show (other than Hawaii Five-O, and that was on Monday), one anime... I didn't even get to draw, for goodness' sakes! And my DS had been broken since August...August!!! So...I admit to "binging" on these things, as well as sleep for the past three days. *smile*
I believe that the aforementioned factors have also made me quite irritable and grumpy, too.

Nevertheless, I have recovered! Now I'm off to look for an old video game that will work on a PC, so I can cure that video game withdrawal! Oh, and I need to write a Christmas-themed fic as well~ I have a pretty good idea. It's fluff. Fluff for the holidays~
(And Zarin-dono, don't worry, I have a good idea for your Sebby/Ciel fic too~)

Anyways, have a great Winter Break, minna-san~!

Merri Kurisumasu! (Merry Christmas!) Happy Hannukah (though I believe that it has passed)! Happy Diwali! And Happy Holidays!



Image belongs to Owaranai Kiss.
Saber and Fate/Stay Night (c) Type-Moon
 

Wednesday, December 15, 2010

In which Pearl struggles to write a code

Konbanwa, minna-sama.

As usual, I'm feeling very tired and lethargic. Add in some stress because the majority of my classes are "behind" the other Grade 9 Pre-IB classes of said subject, and you have the perfect formula for exhaustion. If it's possible to get more than 7 hours of sleep a night in the next few days, I'd like to take advantage of that. Otherwise I might really fall asleep in Science. (And no, I absolutely cannot afford that!)

I think my overall average went down a lot, and it's got me worried. I already knew that my Science mark would drop, I just didn't expect it to drop so much. I'm even dropping in ICS, and I feel horrible, especially after Mr. Arkin gave his speech about expecting us to get over 80% on the recent programming test. I made stupid mistakes...very stupid mistakes...

Anyways, today we continued working on the "Follow the Bounce" program. Last night (this morning?), I had gotten a large part of it done. The only problem was that there were (I'm exaggerating here) a million loops, so that even I got confused - and I was the one who wrote the thing! So, yes, when Randi came over and told Zarin and I that the program only needed to consist of one loop...I...cried. All my hard work, gone! Well, it's nothing to lose sleep over.

By the end of the period, I had gotten a pretty good idea of how to do it. Of course, that included a ton of desk checking (in my head, because it would take too long to do it on paper) and tracing the execution (with the computer). Now, I only need to fix a little glitch and it'll be perfect! Of course, I could never have gotten this far without help! Thank you to everyone who helped me, you know who you are!

I really like this program (staring at it is fun!), so I'm going to create an executable for it. I want to send it to my mom so she can see it (and maybe even show it off to her colleagues at work). Teehee.

For homework, I need to start on the "Window-edge Tracker" program. I have a pretty good idea about how to do it, but I don't want to spend an excessive period of time on it, since I have a big essay for English that I need to finish. I also agreed to editing Zarin-dono's essay (and I'm perfectly happy doing so - I don't mind at all)!

So, I'm off to work now.
Mata ashita, minna-sama!

Friday, December 10, 2010

In which we achieve our goal!

Konbanwa, minna-san~
I think I was still "drunk" from International Night this morning. Heh, not even. I was "drunk" the entire day. I'm going to sneak in a fangirl moment here and say "Oh my God, the Korean groups were so awesome!!!" (Y'know, I'd replace "awesome" with another word [that starts with "h" *wink*] but it's probably not a good idea to say that here.) Ha, now I have renewed respect for Asian boy bands. *cue fangirl squeal* The song's still stuck in my head: Again and again and again and again...

On the other hand, I'm exhausted. After I got home and ate dinner (yes, I get home almost right before dinnertime) I went to sleep. I woke up at 9:30 PM, mentally kicking myself for not writing my blog first. Then again, the minute I go on the computer I won't be able to get off of it for a while. So, yep, that's why I'm doing it now.

*cough cough* Anyways!
Today was the last day we had to review programming in our groups. As I mentioned in the blog title, I think we achieved our goal. My group went over all the Programming Concepts noted on the handout Mr. Arkin gave us quite a while ago. I made sure I understood everything there, and if there was anyone who needed something to be explained to them, I tried to help. (Hopefully they understood after my efforts!)

I love helping others. *smile* I want to be an elementary school teacher, so it's actually helping me prepare for the "challenge" as well.

On another note, I need to start preparing for exams and culminating. Over the break, I plan on taking all my binders home and creating study guides for each one of my subjects, especially Science. Hah... That's what made me "sober". Mr. Pourkhatai returned out Ecology tests today after school, and I got a...horrible mark that will undoubtedly bring down my average.

Dakedo...oyasumi, minna-san!

---

Translation: So...good night, everyone!

P.S. For anyone that's interested, there's a Japanese boy band called NewS (also, NEWS, News) that's actually good. Sorry, I used to hate boy bands in general because they sang about...fickle concepts. Like love. (Dear God, I must sound morbid now.) But yeah, they sang for the seventh One Piece movie. It's called "Sayaendo". The translation's cute.

Thursday, December 9, 2010

In which we review programming in groups

Kon'ichiwa, minna-san~!
Tonight was International Night, so Zarin-dono and I stayed at Maryvale library (at Parkway Mall) until around 5:30, when we walked back [to school]. (God, it was cold!)
Anyways, the entire show (concert?) was amazing! I'm so glad I decided to go. *smile*

Last night, Zarin-dono and I went through the Skills Inventory, briefly going over certain aspects of it and taking note of the concepts we didn't understand.

Anyways, yesterday I mentioned that we got into groups to help each other catch up/fully understand programming, right? We continued doing that today!

It was sort of funny, because I had no idea that there were two kinds of loops. When Mr. Arkin and Zelin tried to explain it to me, I got even more confused, and was like "ne?" *cue cute head tilt*
But eventually I understood! And when I did, I felt extremely stupid.

I think that my group made good progress today! We're going to continue doing that tomorrow. By Monday, I'm sure my group and I will be "Level  4" Computer Science students!

Wednesday, December 8, 2010

In which we learn about procedures

Konbanwa, minna-san!
I...get obsessed with different series very easily. Sometimes my love for a certain series dies out. (For example, I used to adore Hot Gimmick, but now it's...meh. It's not like I don't love it anymore (I mean - who can resist Ryoki-sama? *wink/fangirl squeal*), but it's just not as important to me.) But at other times, I will continue to love that series forever and ever... Like Inuyasha. I started watching it, what, six...years ago? I still adore it. And FullMetal Alchemist, which I started watching at around the same time. Of course, I absolutely cannot forget Detective Conan/Case Closed~! I'm a huge mystery/detective fan, so I love this one. Right now, I love Durarara!! It has a really unique/amazing/epic/addictive storyline and even more unique/amazing/epic/addictive characters. I don't want to stop loving it...


From left: Izaya Orihara, Anri Sonohara, Mikado Ryuugamine, Masomi Kida, Shinra Kishitani, Shizuo Heiwajima. The figure in the moon is Celty Sturlson, a dullhan.
Durarara!! (c) Ryohgo Narita
 Ah, but these are simply the ramblings of a crazy fangirl/writer. To get back on topic...

According to my Programming Glossary, a procedure is a subprogram that performs a defined task. It is very similar to a function. However, a procedure does not have a result (because it's not returning a value) and it can have zero or more arguments. An example of a procedure with zero arguments looks like this:

procedure sayHello
     put "Hello!"
end sayHello

sayHello

This code outputs "Hello!"
However, you can "upgrade" it, using an argument. This code will output "Hello, Shizu-chan!"

procedure greetUser (greeting : string, userName : string)
     put greeting + ", " + userName + "!"
end greetUser

greetUser ("Hello", "Shizu-chan")

Simple, ne? *smile*
Of course, if this was Izaya-kun speaking, Shizu-chan would say: "Get out of Ikebukuro!!!"
D'awws, we love you, Shizu-chan~

You can also ask the user to give you the greeting and name. However, then you must make greeting and userName variables (within the procedure, if that makes sense).

procedure greetUser (var greeting : string, var userName : string)
     put greeting", " + userName"!"
end greetUser

var greeting : string
var userName : string

put "Greeting? " ..
get greeting : *

put "Name? " ..
get userName

greetUser (greeting, userName)

Got it? *smiles again*

Well, I hope that explanation was plausible. I'm generally horrible at explanations (and you wonder how I'll ever become a teacher).

Anyways, after we were taught how to create a procedure, we evaluated ourselves on our understanding of programming. Then we got into groups based on our evaluation. By Friday, Mr. Arkin wants us to fully understand all the concepts of programming! With a bit of work, I'm sure we can do it~!

Ganbatte, minna-san~!

Monday, November 29, 2010

In which Pearl struggles with substrings

I'm exhausted mentally and physically... My fault, for staying up until 2:30 AM last night (this morning). And I didn't even get to drink tea this morning, so I had to trudge through the entire day without any caffiene in my system. By fourth period (French), I was falling asleep. Derr.

Today, Mr. Arkin was away, so we had a guest teacher. She didn't say anything, just let us in. (She made sure we were doing our assignments, though, so that was good).

So, I set to work, tackling the Substring Assignments. It took me a while, but I finally understood the concept. It took me about half an hour to figure out how to do Question 1 properly, but hey, at least I managed to do it, right? After that, things went really smoothly. I got to Question 4 and finished about half of it. I think I'll work on it a bit tonight, and either finish it or continue on tomorrow.

On another note, the programming test is postponed until next week - I just checked the Daily Log! I don't know whether to celebrate or be exasperated that I spent the better part of my weekend studying instead of doing other homework for other subjects.

That said, I just want to mention that I saw my classmates from middle school today. I'm so glad I went to the library (near my house). We stopped and chatted for a while, then went our separate ways. It's nice to see old friends. Over Winter Break, I plan on going out with friends from my old school - Eaton Centre on the 21st, and somewhere else later with a friend I haven't seen since Grade 5. (We still talk to each other every day on MSN, though.)

Mata ashita, minna-san~!

Saturday, November 27, 2010

In which Pearl bows down in shame

Uwaah, gomen ne to shimimasen, minna-san! I forgot to write my blog yesterday! It was the Girls about Girls sleepover, and I went to Cinye's house to pass the time. I completely forgot about this, and I even thought I did it until Zarin-dono reminded me just about two hours ago. Grah... Again, I'm so sorry! *goes into seiza position and repeatedly bows down*

Yes, er, well, on Friday we got yet another work period. The night before, I was working on Repetition Assignment 13. I had finished the basic outline, but I needed to fix a certain (very annoying) glitch. It took me the entire period, but I managed to do it and print out the code! (With about five minutes to spare)

Zelin asked if he could desk check it, so I let him. And when he returned it, he told me that I got the Senior ticket price wrong. I had written "const SENIOR_TICKET_PRICE := 7.25", but the correct price is $7.50! Oh, how stupid I felt. I felt even more stupid after I noticed that I had copied down the exact question from the website, which included the prices. Grah... I must fix that before Monday.

On another note, I'm going over to Lisa's house tomorrow (Sunday) to study for both ICS and French - we have tests for both of these subjects coming up the following week.

I think that's all I have to say. I'm going to sleep now, as I need to get up early to finish my homework. (Plus, my mom wouldn't let me go if I didn't go to sleep right after I finished typing this up) Grah... I have to finish my PP article, do my English (which is actually not that hard), check to make sure my ICS binder is up-to-date, and write out a Science Lab Report (due Tuesday, so I can put that at the bottom of my list - for once).

Can I say a little something about the sleepover?
It was awesome! My group leaders were hilarious, and I laughed so hard my cheeks hurt! The dinner was delicious - lasagna and salad, with a side of bread. We even got cupcakes and chips as evening and midnight snacks (respectively). And there was karaoke~! The only part that I didn't like was that I got a headache at around 9 PM, and it got worse as the night progressed. It's probably due to lack of sleep - after all, I had gotten a total of 17 hours of sleep the previous three days. I took a nap at around 10 PM, woke up at 10:30, then went back to sleep at midnight. I didn't watch the movie.

I woke up numerous times in the middle of the night. The first time I woke up, the movie had ended. The second time, I heard these banging/popping noises. I got so freaked out! My first thought was, Oh my gosh, it's a gunfight. Then the logic kicked in, and I realized that if it was, then everyone would probably be screaming. I concluded that someone must've been setting up equipment for Saturday, and bouncing balls (some of them make a scary sound!). So, I went back to sleep. I woke up again to hear the same noise. I was a bit more awake then, so I decided that it could've been someone's air mattress. I went back to sleep. The next time I woke up, it was five minutes before 7:30 AM, and we were going to get up anyways. Hm.

Okay, this wasn't really "little", but I just had to talk about it. I had such a great time, and next year I want to be a leader!

...I'll shut up now. So, um, see everyone on Monday!
Ja ne!

Thursday, November 25, 2010

In which we spend the majority of our time talking

The day started off with Mujtaba informing the class that we had the choice of taking Latin instead of French to get our Language credit next year. I knew this already, because we are in the same French class, and our teacher, Mr. Vetranos, was the one who told us about it. Personally, I'd love to take both. I've been wanting to learn Latin since Grade 3, but I don't want to stop taking French - after all, I've already spent five years in the Extended French program, so why drop it now?

Mr. Arkin told us about how valuable it was to know multiple languages. Being bilingual, trilingual, etc. is very helpful in many different aspects of life, especially getting a job. By the time we finished discussing this, half an hour had already passed. (Yeah...being worried about how much time we would have to actually work on our Repetition Assignments, I kept glancing at the clock. I would've looked at my watch, except it broke. Two months ago. *cry*)

So, after we closed the "forum" on languages, Mr. Arkin provided us with three points that will help one become a better programmer.
  1. Read with precision.
  2. Break a solution into an ordered set of steps.
  3. Visualize contents of memory.
He suggested we read our code to another person, while explaining what each symbol or keyword does (for the first point). Zarin-dono and I sort of do this - we're halfway there. Before each one of us prints out the code, we switch places to take a look at the other's code, pointing out anything that is peculiar or incorrect. Then, we print the code out. This is great, because we save both paper and toner.

I do break a solution into an ordered set of steps when I program. I write half of the documentation section (programmer, date, file name, purpose), then before I do anything else, I think about what I will do. When I have a basic outline of the steps needed to reach the solution, I start writing the program. Like Mr. Arkin previously suggested, I start with the input/processing section. Every time I finish typing out a major action, I make the necessary changes or additions to the declaration and/or initialization sections.

I don't visualize contents of memory unless I am desk checking my code. However, after I do a test run (of my program), I look back at what I inputted and mentally check to see if the processing is done correctly.

---

Then, Mr. Arkin gave a brief demonstration of three ways Repetition Assignment 8 could've been done (for a certain part of the code).

Method 1
if integer > 0 and integer mod 2 = 0 then

Method 2
if integer > 0 then
  if integer mod 2 = 0 then
  ...
  end if
end if

Method 3 (using a boolean expression)
positive := integer > 0
even := integer mod 2 = 0

if positive and even then

The last one is cool, but it requires more variables. If I was writing the program, I would most likely use Method 1 because it is the simplest and most straightforward (in my opinion) out of the three.

---

When we got to go to our computers, we had fifteen minutes left. I barely did anything, because I needed to check over some other stuff.

All our programming assignments are due on Monday. I finished everything, but I'm not sure if I have all the codes printed out. Derr. I need to make a checklist (though  I'd probably lose it anyways).

On another note, tomorrow is the Girls for Girls sleepover. I won't be home until Saturday afternoon (I'm going straight to the library, then dance class after I leave the school.)  I'll do my best to write my blog entry tomorrow afternoon, but if it's not up, you know why. I promise to write it the minute I get to the library on Saturday, though. *smile* I'll make a mad dash for one of the computers!

I think this is the longest blog entry I've written so far, ne? I'll stop talking (typing?) now.

Ja ne, minna-sama!

Wednesday, November 24, 2010

In which we get our mid-term marks

Oh my, I thought I did this already. It's my fault for stalking the DRRR!! kink meme.
Ahem. Yes, anyways...like the title of this blog entry says, we got our mid-term marks! Although most people would argue that I did exceptionally well, I am quite disappointed with my average. It's not as if I think it's not high enough (believe me, this is the highest average I ever got); it's more like...the number is rubbing it in my face (that I didn't get a higher mark).
...Yep.

Well, back to the main topic. Mr. Arkin taught us about arrays today. In essence, an array is a keyword that allows us to take a large quantity of tokens using the same variable. It's very useful, especially when, for example, the user needs to input, say, one hundred items, prices, etc.

...Oh dear God, it's already 10:30 P.M. Where did the time go? Maybe I spent too much time reading fanfic today.

Right. After Mr. Arkin gave his lesson, he sent us to work on our Repetition Assignments. We were to write a modified version of question twelve, in which we use arrays. (Application of knowledge!) Zarin-dono and I finally finished it, after lots of blood, sweat and tears. I worked on part of Question 13 tonight, but it's still not done.

Ah, well, I should probably do my french homework now. I also have an English presentation tomorrow. Grah... Wish me luck!

Tuesday, November 23, 2010

In which Pearl gets a shock

Aw man, Mr. Arkin is hilarious.
"Some of you used special character entities for characters that are not special!"
Today was a great day.

We got our Printer Comparison marks today. Let's just say (again), I'm extremely happy with mine.

He started the less on by giving us a review on absolute and relative links (which, for me at least, was very much needed). An absolute link starts with a protocol, and can be used on any web page. A relative link does not start with a protocol, and can only be used on web pages that are in the same (root) directory as the file it links to.

An example of an absolute link is http://chibikarin22.deviantart.com/
(This links to my deviantART account.)

An example of a relative link is /EC/ICS2O/assignments/printer_comparison.html
(This tells the computer to start from the root directory and look for a folder called "EC", then look for a subdirectory in that directory called "ICS2O", and so on.)

Then he continued on by telling us about how we should properly write our HTML code. (Like the special character entity problem.)

After he finished his spiel (when I say "spiel", I don't mean for it to offensive, so please don't take it that way!), we went back to our computers and worked on Repetition Assignment 12. Not soon after, the bell rang, and I got a huge shock: I barely got twenty lines down! Grah...

Even after I got home, it took me at least half an hour to finish it. Zarin-dono Zarin-chan even pointed out that I got the GST and PST wrong. Heh. I guess I'm really tired today. And I have to write it out. The code is 104 lines...*cries*

On another note, I still have to finish that poem for the Lit section, write my News and Events article, and finish inking that birthday card for my friend from middle school. That's gonna be easy!

Ahem. Yeah, so until tomorrow, minna-sama!

Thursday, November 18, 2010

In which Pearl works on Repetition Assignment 8

Huh...I almost forgot to write this...
After I got back home, I started reading Percy Jackson: The Last Olympian, since it is due on Monday. I wanted to finish it tonight, so I could spend the rest of the weekend working. Unfortunately... I almost always read lying down, and most of the time I fall asleep either in the middle of doing so or right after I finish. And lo and behold, I woke up (just in time) to do this! *sweat*

Although today is Thursday, there's no school tomorrow, as it is a PD Day. Mr. Arkin calls it our "undeserved" long weekend. Heh.
I wonder why they call it a PD Day? In middle school it was called a PA Day, which stood for Professional Activity Day. I think. So what does the "D" stand for? Hmm...

Anyways, back to computer class. Today we were assigned a new project, one that (surprisingly) has to do with HTML. Because we all had problems with getting our codes printed on time, Mr. Arkin is asking us to do a research project on at least two different types of printers and present our findings in a table. Of course, it's much more elaborate than how I just explained it.

The web page with the instructions makes the aforementioned assignment sound pretty easy, but - and yes, I'm speaking from experience - I know this will probably be what I'm working on for the majority of the weekend. *sigh*

On another note, we were supposed to do a modified version of Repetition Assignment 8, but I finished that in class. And I managed to print out the code - just before school ended, too!

Ah! I just realized...because tomorrow is a PD Day, we aren't going to have Studio 218! What a sad thought...

Have a good (long) weekend, everyone! I won't be writing again until Monday.

Wednesday, November 17, 2010

In which Pearl perfects Repetition Assignment 6

I'm going to make this short, as I have to finish my science.

Today we switched our codes for Repetition Assignment 6 with a partner and performed a code analysis and desk check on it.

I was partners with Alisha and Randi, and...they didn't suggest anything. So! I asked Mr. Arkin! He made some suggestions and informed me of a problem I had with it - my program didn't guard against 0! (I think that's what it's called) Neither Zarin nor me could figure it out, so we asked Hannah for help. Thank you, Hannah! I really appreciate it!

By the time we were finished, there were only fifteen minutes of class left. I started Question 8, but I didn't get far. Grr... For once, I'm going to do my Computer Science homework last, since I need to print out my science stuff.

How short... Ah, whatever. Until tomorrow, everyone!

Tuesday, November 16, 2010

In which we took a survey

Have I ever told you how much I love baths?
They put me in a dreamlike state...where I can escape from the stress of reality, even if it's just for a bit.
It's a wonderful feeling...

Anyways, today we had another work period. Sort of. The first thing he asked us to do when we came in was fill out a survey. It was similar to one that I wrote back in middle school. We were asked what aspects of the class we liked, those that we didn't like, and what should start happening. And, like most questionnaires, putting our respective names down was optional.

I had very little (one) complaints. And even so, it wasn't that big of a deal - just a personal pet peeve. I enjoy this class very much, so I had a lot to write for the first part.
...My friends tell me I write too much. Do I? I was...the second last...person to finish...

Grah...I'm a writer, I'm supposed to write a lot! *sweat*

Ahem. Er...continuing on! After that, Mr. Arkin asked for our best program code. My printer at home is broken, so luckily I went to the Lab during lunch and asked to print it out then. Thank you so much, Mr. Arkin! Hopefully I did well. He didn't call me up today.

While he was having individual conferences with my classmates, I worked on the repetition assignments. I had to fix Question 5, so that took up some time. I managed to finish Question 6 in class, so all I have to do tonight is Question 7. I might work ahead, too, since I...really don't like working on Science.

It's only six more days until my birthday! I'm happy and sad at once...
But you know, the best present one could give me is the chance to see my old classmates again. I really, truly miss them.
Otherwise... My dream present is the entire Detective Conan series. All the manga volumes (there's over 80 in Japan), all the anime DVDs (I'm pretty sure there's at least 700 episodes...don't know how many DVDs, but each one holds approximately three to four episodes [in Japan]; in North America, the most I've seen is seven per disc), and all the movies (the fourteenth one just came out in September). But that'd cost thousands of dollars, so I doubt anyone would ever get me that. Too bad, ne?

On an ending note, I changed the background of this blog yet again. This time, it's a wallpaper I made using Gimp. The two people on the left are Mitsuki and Eichi from Full Moon wo Sagashite. The actual photograph was taken by yours truly. *smile*
If you want to download it, you can go check my dA account.
Disclaimer: Full Moon wo Sagashite belongs to Arina Tanemura!
Time to work!

Oyasumi, minna-san!

Monday, November 15, 2010

In which we vigorously worked on our Repetition assignments

Haha...I was so hyper today...
Maybe because I was using the names of the characters from Durarara!! to test out the program for Repetition Assignment 3? Hmm...probably, yep.
I think I freaked out Zarin-chan. Hee. I love freaking my friends out. *innocent smile*

Well, today was a work period for our repetition assignments. Zarin and I worked together (sort of) and got to Question 4! *wince*
But that's okay, right? Because we finish the rest at home? *sweat*
Honestly, Question 3 was...frustrating. At first, I thought everything was fine; but then Mr. Arkin stated that we shouldn't ask the user whether to continue or not. Then I felt like "What? All my hard work - gone down the drain! *cry*" Yep.
Then I remembered one of the examples we did in class on Friday (was it Friday? I think it was Friday) and used that format. It should be right now. I even made sure the greeting was distinctive! As in, I made the background colour navy blue and the text colour white. So it's visible.

I also finished the basic part of Question 4, but I need to tweak it. Yes... Look forward to seeing that.

Oh yes, before I forget! We finally had Studio 218 today (it's been a long time) even though it's Monday, not Friday. Out of all the songs on the playlist, I know...about three. And two of them were ones I suggested. *sweat*
It's not my fault! I just don't listen to English songs anymore! Wait...then it is my fault. Derr...
But YouTube kept playing commercials, so Mr. Arkin didn't let us listen to the playlist anymore. *cry*
It sucks. I was watching Durarara!! the other day (on YouTube, yes, because for some stupid reason...CrunchyRoll wasn't working. Grah...), and I had to endure...thirty seconds...of commercials before it started. Argh!

On another note, Mr. Arkin posted up our midterm marks this morning. I won't say (type?) out mine here, but let's just say... I'm extremely happy with what I got. ...Heh.
Hopefully I can keep it up.

Anyways, I'm going to finish the rest of my homework now.
Until tomorrow,
Ja ne, minna-san!

Friday, November 12, 2010

In which we get our first official repetition lesson

Ne, ne, I can actually hit the target now! Sort of. Well...my best hit rate was 75%.
Grah...what am I saying? I'm still horrible.

Anyways, today we finally got to learn about repetition! The first thing Mr. Arkin showed us was a program that continued to show the text "Hello, world!" on one corner of the screen after another. He didn't show us the code, but instead moved on to teach us about loop.

When a certain action or actions need to be repeated, we use the loop procedure. Everything in the loop body gets repeated over and over until a certain condition is met. All the major actions that are repeated are inside what's called the loop body. To instruct the computer when to stop repeating these actions, you use the keywords exit when.

For example:

loop
     put i

     i := i + 1

     delay (1500)

     exit when i > 13

end loop

Yep. Except in here, "13" and "1500" are magic values. Normally you would use a constant (or variable, depending on the type of program) in their places.

As for what this program does, it simply incrememnts i (a given integer) by one every 1.5 seconds.
When i is greater than thirteen (in other words, when i is equal to 14), the computer stops looping these actions and performs the next action, if there is any. If not, then the program is finished.

Simple, ne? And I finished all the homework, too! Now all I have to do on the weekend is my science. And I want to draw a picture for Jessie's birthday, as well as continue my Durarara!! fic.

I wish Durarara!! had more backgrounds. I'm changing my background today (this morning?) because the current one is just too busy. I wanted to use a picture from DN Angel, seen below, but I couldn't find a...er, bigger one.

Risa-chan!
DN Angel belongs to Yukiru Sugisaki.
Therefore...I'm using my old Fate/Stay Night wallpaper. Hopefully you guys like it (yes, I really do care about that).

That's all I have to say about today. I've been feeling very...depressed these days. So, don't mind me if I suddenly slip into a younger version of myself. It's normal.

Ah, well. I should go to sleep now. I'll just change my background first. Sweet dreams, minna-san!