Wednesday, February 27, 2008

Week 4, Post 1 (and another one bites the dust!)

Hello again, and welcome to Blake hates semicolons. Why is it that I created another I hate semicolons? Because I do. Alot. An incredible amount. More than even broccoli. Why you ask? Because I just wrote my programming test. (well a few days ago, but close enough.) During this test, I had to go over my test at the least 15 times. Not because I made errors, but because I forgot semi colons. To remedy this, I added semi colons to every line. It is at this point that I remembered that you don't put semi colons after squiggly lines ( { } ). Which means I had to go back over my test and take away semi-colons. This happened about 4 times more before I finally finished off. I felt pretty confident as I handed it in.


That only lasted until I recieved it back. I managed to create 2 stupid errors, mainly due to errors. Other than that, the test was pretty good, and I received a 90% on it. Not quite what I wanted, but considering the alternatives, not too bad overall. Was not quite pleased with the last error I made. I had to input data into a 2D array, and I didn't quite know how to. The test said that all arrays had entered in the 3D array section, and not including the 2D array is somewhat strange, but it was only one mark off so it didn't hit me too hard as I still got the guts of the code.

Not much else happened this week of note. I had an assignment to do, which mainly used GCD (greatest common denominators) It wasn't the most interesting thing, but did get you thinking. When you look at the format for getting the GCD, one has to wonder, how in the hell does these Greeks manage to not only not work, but spend lifetimes sitting around playing with numbers. Anyways, to receive the GCD of 2 numbers, one has to do a strange calculation which goes something like this. B/A >remainder > B/remainder > remainder 2 > ... and so forth until the remainder is 0, making your previous dividend your GCD. Quite interesting, not quite sure how it works, but it does. The code for it was simple, the math wasn't too bad. Overall, feel pretty confident about the assignment. And with that, I am going to go crack a few shots at the 3rd programming question ( ascii + binary, God save me). Goodbye dear readers, I shall miss you in the hell that I am going to.

No comments: