Showing posts with label School. Show all posts
Showing posts with label School. Show all posts

Thursday, October 26, 2006

Assignments - CAD & IA32

Gave up on my CPU for now. So sad. Stare at the coding so long still can't do. Planning to leave it a few days then go back to it again. Hope it's not too late by then. I have another assignment as well, Intel Assembly programming. Just started today. =P

Using WinAsm Studio as my IDE and MASM as the assembler. Seriously, the assignment is quite simple. I'm still thinking if to make it a little bit more complicated. I mean, what is needed in the assignment is to input your name, display it, input 10 numbers, count the sum and average and display it. That's all!

The best part is, I don't even have to figure out how to call the function to read the input from keyboard. The basic console template in WinAsm Studio already included that function. So the input name and displaying it part, I just need to modify the words displayed on screen. =P

I'm now at the part that ask you to input 10 numbers. Still thinking if I should ask the user to input the numbers one by one, or I should play around with the string command in MASM (I'm not using Irvine.inc function. masm32.inc is good enough)

Sunday, October 15, 2006

Economics

It's weird actually. I did my econs assignment using php. Actually I'm suppose to use Microsoft Excel to do the calculations then type out in Microsoft Word but I don't have any Microsoft Office installed on my computer (I also didn't know how to use Excel for calculations).

Most of you would be shocked but I have survived without using Microsoft Office for more than 2 years now and I can survive for another 1 semester without. Support open source software! (I'm using OpenOffice.org) So instead of doing double work, calculation using Excel and writing using Word, I decided to combine both and use php.

I inserted the main table into a database, used php to read the data, manipulate it, and write out the documentation as well. Since it's mostly repeatative work, I just copy and paste most of the coding. The documentation I just exported it to pdf file. Nice and simple (although i did need to adjust the page break and stuff)

The conclusion is, to produce a 11 page documentation, 1690 lines of php & html coding is needed. Although most of it is just cut & paste. I'm crazy aren't I?