About the Course
Duration: 16 hours (weekend)
Programming Description
The primary topic areas in this course include, but are not limited to, computer representation of various data types, the computer instruction set, basic C syntax, logic operators, flow control, functions, arrays, pointers, simple IO, scope of variables, basic microprocessor instruction cycle, relationships between assembly language and C, compilation, linkage and loading of programs. Students will learn structured programming such that problems can be translated from word definition to an intermediate stage and then implementation in C.
Course Objectives
On successful completion of this course, a student should be able to:
- Write and interpret moderately complex C programs
- Structure their programs correctly
- Take real-world problems, formulate solutions and write C programs to implement their solution
Course Outline
Module 1 – Overview of engineering programming
- Product Development Cycle
- Software Development Cycle
- Computer Systems
- Computer Software
- Programming Languages
Module 2 – Overview of C language
- What is a programming language ?
- Integrated Development Environment
- C Language Elements
- Common programming errors
- Programming style
Module 3 – Data types, operators and standard functions
- Variable declaration
- Basic Data Types
- What is the output?
- Expression Type
- Type Conversion
- Algorithm
- Common errors
Module 4 – User defined functions and modular design
- Software Systems
- Modular Design
- Task decomposition
- User Defined Functions
- Common Mistake
- Function Prototypes
- Function call
- Scope
Module 5 – Relational and logical operators.
- Relational Operators
- Logical operators
- Short-Circuit Evaluation
- Simplification of a logic expression
- Compound statements
Module 6 – Repetition. Loops and recursion
- while, for Loop
- break and continue
- Nested Loops
- Recursion
- Iteration
- Iterative vs. Recursive
Module 7 – Arrays
- Simple Data Types
- What is an Array?
- User defined data types
- Operations with Arrays
- Two Dimensional Arrays
- Strings
Module 8 – User Defined Data Types
- New data types
- Operations on enum types
- Structure
- Union
Module 9 – Text files
- Concept of a File
- Classification of Files
- Text Files and Streams
- Formatted Output
- Buffering