INTRODUCTION TO COMPUTER PROGRAMMING USING C-1 (G205B)
RATIONALE :
This course is an introduction to the C-programming language. The student will be introduced to Flowcharts, Algorithm and Pseudo-code. They will also have knowledge of different types of programming language. The student will get acquainted with fundamentals of C Language like the character set, operators and expressions used and the control structure. They will learn to write programs containing the following C language features: simple data type, looping, branching, one-dimensional arrays and user-defined functions. The use of structured programming techniques, program readability, program documentation and testing will be emphasized.
PART A: THEORY
DETAIL COURSE CONTENT
DETAIL COURSE CONTENT
UNIT 1-INTRODUCTORY CONCEPTS:
Introduction to Computers.Programming techniques.Flowcharts. Algorithm. Pseudo codes.Types of Programming Languages :– Machine Level Language, Assembly. Level Language, High Level Language, 4 Geneneration Language- Introduction to assembler, compilers, case tools Introduction to C.
UNIT 2-C FUNDAMENTALS:
The ‘C’ Character Set. Identifiers and Keywords.Data Types.Constants.Variables and Arrays.Declarations.Expressions.Statements. Symbolic ConstantS.
UNIT 3-OPERATORS AND EXPRESSIONS:
Arithmetic Operators.Unary operators.Relational and Logical Operators.Assignment Operators.The Conditional Operator.Library Functions.
UNIT 4-DATA INPUT AND OUTPUT:
Preliminaries.Single Character Input- The getchar Function.Single Character Output-The putchar Function. Entering Input data – The scanf function.Writing Output . Data – The printf function, gets and puts Function.
UNIT 5-PREPARING AND RUNNING A COMPLETE C PROGRAM :
Planning a C Program.Writing a C Program .Entering the Program into the Computer.Compiling and Executing the Program. Error Diagnostics. Debugging Techniques.
UNIT 6-CONTROL STATEMENTS:
Preliminaries.Branching: The if-else statement.Looping: while, do-while & for statements. Nested Control Structures.The switch statement.The break statement.The continue statement.The Comma operator.The goto statement.
UNIT 7-ARRAYS:
Defining an Array. Processing and Array. Passing Arrays to Functions. Multidimensional Arrays . Arrays and Strings.
Defining an Array. Processing and Array. Passing Arrays to Functions. Multidimensional Arrays . Arrays and Strings.
UNIT 8-USER DEFINED FUNCTIONS:
Concepts of a User Defined Function. Declaration of Function. Function Prototypes/ signatures. Function calling. Passing Arguments to a Function. Recursive functions.
PART B- PRACTICAL
Suggested demonstrations / tasks:
A. Introduction-
1C language and its compilers
2 Keywords, expressions, constant
3 Primitive data types in C
4 Header files and library functions
5 Types of Variable
6 Pre-processor directive and Macro
B. Using Program Control
1 Conditional Statements
2 Iterative Statement
3 Unconditional jump and its restrictive usage
4 Importance of initialisation
C. Working with Array
1 Overview of array
2 One dimensional array
3 Multidimensional array
4 String representation
5 String manipulation
D. Creating User defined Function
1 Writing functions in C language
2 Function definition and function declaration
3 Writing void function
4 Writing parameter passing and global declaration
5 Scope of variables in function
6 Recursion: Binary search, quick sort