- To develop knowledge and skill to prepare programs in C.
- To develop knowledge and skill to create, compile, debug & execute C programs.
SHORT DESCRIPTION
Basics of C program; Data types; Variables; Operators; Expressions; Input-Output statements; Branching and Looping statements; Arrays; preprocessors, Functions, Pointers; Structures and Unions; File operations and Graphics.
DETAIL DESCRIPTION
Theory:
1 Understand fundamentals of C Programming
- Describe the historical development of C Programs.
- Describe the Basic structure of C program and programming style .
- State the difference of C with other high level languages.
- Explain the process of program planning.
- Describe algorithm and flow chart.
- Prepare algorithm and flow chart for simple problems.
- State the process of compiling C program.
- Write simple programs using basic structure of C program.
2 Understand data types, constants and variables.
- Describe the data types in C.
- Explain constants and variables in C.
- Describe the keywords and identifiers in C.
- Mention the use of qualifiers in data types.
- Declare variables and asign values to variables.
- State the type conversion and type defination in C.
- Write simple programs using constants and variables.
3 Understand Operators and Expressions.
- State C operators and their classification.
- Describe the arithmetic, relational, logical, assignment, increment, decrement and conditional operators.
- Explain the bitwise and special operators.
- Write arithmetic expression & its evaluation.
- Describe the precedence of arithmatic operators.
- Mention operator precedence and associativity.
- Write simple programs using operators and expressions.
4 Understand the input and output operations.
- Describe the statement getting input from keyboard.
- Describe the statements printing output on screen and by printer.
- State the codes used for formatted I/O.Statements.
- Mention the escape sequence in C.
- Write programs using I/O statements.
5 Understand the Branching and Looping Statements.
- Describe the conditional an unconditional branching flow.
- State the statement for conditional and unconditional branching.
- Explain the format for branching statements.
- Describe the conditional an unconditional Looping flow.
- State the statement for conditional and unconditional Looping.
- Explain the format for looping statements
- Write programs using branching and looping statements.
6 Understand arrays
Define arrays
Describe the dimension of arrays.
Initialize arrays.
Write programs using arrays.
7 Understand preprocessor statements in C.
- Describe the preprocessor directives and their functions.
- Define header.
- Describe the process of including header in routine.
- Explain the use of macro.
- Describe the advantage of macros over functions in programs
- Write programs using preprocessor statements.
8 Understand pointer and its application.
- Define pointer.
- Describe the characteristics of pointer.
- Explain pointer expressions.
- Write programs using pointers.
9 Understand Function.
9.1 Explain library function and user defined function.
9.2 Describe the process of calling functions and returning values from functions in C.
9.3 Describe arguments used in functions.
9.4 Mention function prototype.
9.5 Write programs using library function and user defined function..
10 Understand structure and union.
10.1 Describe structure and union.
10.2 Mention structure and union declaration.
10.3 Distinguish between structure and union.
10.4 Write simple programs using structure and union.
11 Understand file operations.
11.1 Describe file operations.
11.2 State the modes of opening files.
11.3 Describe the functions that support character I/O.
11.4 Explain the routines for performing formatted I/O to files
11.5 Write programs for reading, writing and editing files.
12 Understand graphics and its application.
12.1 Describe how graphics are created in computers.
12.2 State resolution.
12.3 Describe the graphic statements for creating point, line, circle, arc and polygon.
12.4 Describe the statements required for selecting color and filling shapes by color.
12.5 Describe the statements used to copy and move text and graphics.
12.6 Write programs to create simple graphics..
Practical:
Perform skill to create, compile, debug & execute C programs to solve specific problems.
- Test simple programs using basic structure of C program
1.1 Test a program for printing a message.
1.2 Test a program for adding two integer numbers.
- Test simple programs using constants and variables
2.1 Test a program to calculate the average of a set of N numbers..
2.2 Test a program to convert the given temperature in fahrenheit to celcius and vice versa.
2.3 Test a program to calculate the area of a circle.
- Test programs using operators and expressions.
3.1 Test a program to convert days to months and days.
3.2 Test a program to calculate the area of a traingle..
3.3 Test a program to compare two integer numbers
- Test programs using I/O statements.
4.1 Test a program for reading integer/real number.
4.2 Test a program for summation of three floating point numbers from keyboard.
4.3 Test a program to convert centimeter to inch using scanf () and Printf () statements.
- Test programs using Branching Statements.
5.1 Test a program to select and print the largest of the three numbers.
5.2 Test a program to compute the roots of a quadratic equation.
5.3 Test a program to count vowels from a string of ten characters using switch statement.
6 Test programs using Looping Statements
6.1 Test a program to print odd or even numbers from 1 to 100..
6.2 Test a program to find the maximum or minimum number from a set of numbers
6.3 Test a program for searching prime numbers.
7 Test programs using arrays.
7.1 Test a program to sort numbers in ascending or descending order using one dimensional array..
7.2 Test a program to print numbers in two dimensional form.
7.3 Test a program for matrix multiplication.
- Test programs using preprocessor statements.
8.1 Test a program to determine hypotenuse of right angled triangle using macro.
8.2 Test a program to determine the area of a triangle using nested macro.
9 Test programs using pointers.
9.1 Test a program to illustrate the use of pointers in arithmatic operations.
9.2 Test a program using pointers to compute the sum of all elements stored in an array.
10 Test programs using functions.
10.1 Test a program to calculate the area of a triangle using function.
10.2 Test a program that uses a function. to sort an array of integers.
10.3 Test a program calculate factorial of any integer using recursive function.
11 Test programs using using structure and union..
11.1 Test a program to store and retrive data using structure.
11.2 Test a program sample program using union.
12 Test programs using files.
12.1 Test a program to store information to or to read information from sequential file.
12.2 Test a program to store information to or to read information from random file.
12.3 Test a program to convert lower to uper case conversion. using file.
13 Test programs using graphics.
13.1 Test a program to draw a line with different styles.
13.2 Test a program to. draw a circle with different colours.
13.3 Test a program to. generate nested ellipse.
Reference books:
- programming in C – E. Balagurusamy.
- Teach yourself C _ Herbert Schildt.
Discussion about this post