Some Fundamentals

Programming


Example - Algorithms

Problem: Develop a program that tests if a number is even or odd.
Algorithm #1: Divide the number by two.
If the remainder is zero, then the number is even.
Otherwise (the remainder is one), the number is odd.
Algorithm #2: Test the least significant bit of the number.
If the bit is one, then the number is odd.
Otherwise (the bit is zero), the number is even.

Higher-Level Languages


Operating Systems


Compiling Programs


     The Programmer's Drinking Song

	"99 bugs in the code,
         99 little bugs.
         Fix one bug, recompile
         100 bugs in the code."

Program Listings:


Go Back to the COMP435 page