The laboratory will introduce you to computer programming using C, a high level programming language. Emphasis will be given on program logic and design instead of programming language syntax. Pseudocode and flowchart will be used extensively to express program logic and design.
|L1||Mon, Jun 25(U-1L)|
Wed, Jun 27(U-3L)
|Introduction to Computer Science and Programming|
|L2||Mon, Jul 2(U-1L)|
Wed, Jul 4(U-3L)
|Introduction to C Programming Environment||(none)||(none)||(none)|
|L3||Mon, Jul 9(U-1L)|
Wed, Jul 11(U-3L)
|L4||Mon, Jul 16(U-1L)|
Wed, Jul 18(U-3L)
|L5||Mon, Jul 23(U-1L)|
Wed, Jul 25(U-3L)
|L6||Mon, Jul 30(U-1L)|
Wed, August 1(U-3L)
Students should avoid cheating and plagiarism. All programming exercises and
assignments will be done individually.
In order to execute programs in the C programming language, you will need a compiler. A compiler tranlates your program written in C into machine language that can be directly executed by the computer. In the lab, you will be using the GNU Compiler Collection (GCC) within the Mandrake Linux 10.1 environment. If you don't have linux on your home computer, it is possible to program in C by using compilers that run on windows.
To get started, click here to download a minimal command line Turbo C compiler. Save the file to your Desktop.
tcc -ehello.exe hello.c
Other compilers you can use:
The C Book provides a good tutorial for beginning C programmers.