Monday, February 4, 2008

Programming in C Course

Here is a great online programming course with all materials and notes available for free: Programming in C Course. Included are the lecture workbook, exercises, problems, and assessments. Solutions to all of these are also included.


C Programming Workbook and Exercises:

Introduction to programming, what is a computer program, compilation etc
basic C program, syntax rules, variables, naming variables, the printf statement

Exercise: Hello, World!
Exercise: Large letter

Data types, assignment statements, operators, operator precedence

Exercise: Real roots of a quadratic equation
Exercise: Volume converter

Use of the if, while, switch and for statements

Exercise: Hello, world! revisited
Exercise: Factorial
Exercise: Quadratic roots revisited

Techniques for planning and writing an algorithm as a C program,
use of flow diagrams, step-by-step solutions to two past assessments

Exercise: Day of week
Exercise: Newton-Raphson method

Function definitions, passing arguments to functions,
returning values from functions, math.h library

Exercise: Replacement pow() function
Exercise: Simple sort function

Input file handling, output file handling, multiple streams,
use of printf to format output, more on scanf

Exercise: Cartesian to polar conversion (Vectors Data File)
Exercise: Student database (Students Database File)

1 dimensional arrays, multidimensional arrays, fixed and variable size arrays,
string handling

Exercise: Full name
Exercise: Matrix multiplication

Definition of structures and their use, arrays of structures,
passing a structure to a function, linked lists.

0 comments: