CFR1124

Computer programming II

P McKenzie

6 points
* 4 hours per week
* First, second, summer semester
* Peninsula
* Prerequisites: CFR1121
* Prohibitions: BUS2011, BUS4611, CFR1122, CFR2121, GCO1812, SFT1102, SFT1122

Objectives At the completion of this subject students should know and understand programming principles, including sequence of control mechanisms, modularity, parameter passing, file handling techniques, indirect addressing and use of variable scoping; know about data structures, understand how to select them appropriately, and be able to use them as part of programming solutions to client information systems problems; and be able to implement the programming principles through C programming in a UNIX environment.

Synopsis Features of C programming: the pre-processor, scope, lifetime and storage class of variables, advanced use of pointers, uses of recursion, command line arguments, memory allocation, bit operators. Data structures: arrays, alternative array notations, initialising arrays, pointer arithmetic with arrays, arrays and functions. Strings: storing strings, pointers to char, terminating strings, string functions, arrays of strings, arrays of pointers to char, pointer to array of pointers to char, recursion and strings. Structures and unions. Linked lists. Stacks and queues. Binary trees. File handling: character, line, formatted and record input/output, random access. Programming in a UNIX environment: using the UNIX operating system; logging on/off, directories, creating, copying, removing files, file access, use of editors, multifile programs, screen handling in C programs. Redirecting program input/output to/from files and/or other programs. System calls from within programs, making screen output available to programs, creating parallel processes.

Assessment Examination: 40%
* Unit test: 20%
* Practical work: 40%

Prescribed texts

Kruse R L and others Data structures and program design in C Prentice-Hall, 1991

Recommended texts

Deitel H M and Deitel P J C: How to program 2nd edn, Prentice-Hall, 1994
Hanley J R and others Problem solving and program design in C Addison-Wesley, 1993

Back to the Information Technology Handbook, 1998
Handbook Contents | University Handbooks | Monash University


Published by Monash University, Australia
Maintained by wwwdev@monash.edu.au
Approved by M Rambert, Faculty of Information Technology
Copyright © Monash University 1997 - All Rights Reserved - Caution