I got one trial done in my four trials this weekend, but it's not working the way I want it to. Now I regret ever feeling relieved that I won't be touching C too often this semester.
A SymboL (Assembly Language) is now the bane of my programming existence followed by Gobble (COBOL). Fortunately, this week's COBOL exercise is the last for the PL we'll be having Perl next...I do hope Perl would take it easy on us.
I spent four hours trying to program an exercise which was meant to be done on a three-hour lab session. I suck, I incredibly suck at programming I don't even know how I got this far.
Anyway, the exercise is all about computing the average of three two-digit numbers. I took our instructor's tip about programming the problem first in C before doing it in Assembly.
In C, I completed the program in 5:44 minutes using only 29 lines, 20 without any spaces and comments for aesthetic purposes. The program is worth a ten out of ten for the specs, in my own observation.
In Assembly, I spent four hours writing 200 lines of code trying to make sure that the right variable is in its place containing the right value...and dangnabbit the program doesn't even output the desired result. I'm going to give it something like zero or maybe even lower than the Mariana Trench - or a 4. A four is good for the effort.
I won't bother posting a snip of the Assembly program since it's not working right, and in the event that it did work, none of us would probably finish scrolling down to the last int 80h.
A SymboL (Assembly Language) is now the bane of my programming existence followed by Gobble (COBOL). Fortunately, this week's COBOL exercise is the last for the PL we'll be having Perl next...I do hope Perl would take it easy on us.
I spent four hours trying to program an exercise which was meant to be done on a three-hour lab session. I suck, I incredibly suck at programming I don't even know how I got this far.
Anyway, the exercise is all about computing the average of three two-digit numbers. I took our instructor's tip about programming the problem first in C before doing it in Assembly.
In C, I completed the program in 5:44 minutes using only 29 lines, 20 without any spaces and comments for aesthetic purposes. The program is worth a ten out of ten for the specs, in my own observation.
our first exer in C |
I won't bother posting a snip of the Assembly program since it's not working right, and in the event that it did work, none of us would probably finish scrolling down to the last int 80h.
Comments
Post a Comment