Computer Programming With C
Computer Programming With C
Semester: I
Course Objectives: Students will gain understanding of basics of computer, hardware, software,
and programming language Students will learn problem solving skills through C programming
language.
Detailed Syllabus:
Sr. Contents Hours
1 Introduction to Computers and Programming: 05
Introduction to computer: Basic block diagram, Functions of various components
of computer, Concepts of Hardware and software, Types of software
Computer languages and programming: Concepts of Machine level, Assembly level
and high-level languages, Compiler and interpreter, Flowcharts and Algorithms
2 Fundamentals of C: 06
Features of C language, structure of C Program, comments, header files, data types,
constants and variables, operators, expressions, evaluation of expressions, type
conversion, precedence and associativity, I/O functions
3 Control structure in C: 08
Decision making and Branching: Simple if, if-Else, Nesting of if-else, Else If ladder,
Switch statement, The ? operator, goto statement
Decision making and Looping: while statement, do statement, for statement, Jumps
in loop, break and continue, Nesting of control structures
Page 1 of 5
4 Array and String: 07
Concepts of array: One- and two-dimensional arrays, declaration and initialization,
operation on array, multidimensional arrays
Character array and string: declaration and initialization, operations on string,
Built-in string functions, table of strings
5 Functions and Recursion: 06
Concepts of user defined functions: function declaration, function definition,
function call, passing parameters, nesting of functions
Introduction to Recursion as a way of solving problems and examples
6 Structures and Unions: 04
Basics of structure, structure members, accessing structure members, nested
structures, array of structures, structure and functions, Introduction to Unions
7 Pointers and File Management: 04
Basics of pointers, pointer to pointer, pointer and array, pointer to array, array to
pointer, function returning pointer, structures, and pointers
Introduction to file management and its functions
Page 2 of 5
6 Write a program to reverse a number.
Write a program to generate first n number of Fibonacci series.
Write a C program to find the sum and average of different numbers which are accepted by
user as many as user wants.
Write a program to check whether the given number is prime or not.
7 Write a program to evaluate the series 1^2+2^2+3^2+……+n^2
Write a C program to find 1+1/2!+1/3!+1/4!+.....+1/n!.
Write a C program to display following patterns using asterisk (*).
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
Write a C program to display following patterns.
1 2 3 4 5 AAAAA 1
2 3 4 5 BBBB 0 1
3 4 5 C C C 1 0 1
4 5 DD 0 1 0 1
5 E 1 0 1 0 1
8 Write a program to read array of integers and print it in reverse order.
Write a program that adds two 1-dimensional array& store into third array.
Write a program to insert and delete an element to/from desired position in an array.
Write a program to sort a given array in ascending order. (Use Bubble Sort algorithm)
9 Write a program for multiplication of two matrices.
Write a program to find length of string without using library function.
Write a program to concatenate two strings without using library function.
10 Write a program that reads a string and counts occurrences of a given character.
Write a program convert character into Toggle character.
Write a program that checks whether the string is palindrome or not using string library
function.
11 Write a C Program to demonstrate the use of inbuilt string functions.
Write a function power that computes x raised to the power y for integer x and y and returns
double type value.
Write a calculator program (add, subtract, multiply, divide). Prepare user defined function for
each functionality.
12 Write a program to find sum of elements of 1-D Array using Function.
Write a program that use user defined function swap() to interchange the value of two
variable.
Write a program to find factorial of a number using recursion.
Write a program to generate Fibonacci series using recursion.
Page 3 of 5
13 Write a function which takes a two integer array as argument and give sum of these arrays.
Define a structure to enter enrolment number, name of student and marks of the student in
three subjects. Enter data for 5 students. Display grade cards of all students. Display student
who has top rank in the class.
Define a structure called cricket that will describe the following information:
Player name, Team name, Batting average
Declare an array player. Write a program to print name & team of those players
whose batting average is greater than given value.
14 Write a program to demonstrate the concept of union.
Write a program using pointer and function to determine the length of string.
Write a program to demonstrate the concept of pointer.
Write a program to add elements of array using pointer.
15 Write a program to copy the content one file into another file.
Write a program to demonstrate ftell() and fseek() for file handling.
Write a program that compares two files and returns 0 if they are equal and 1 if they are not.
Reference Books:
1 Programming in ANSI C, Eighth Edition, by E. Balagurusamy, McGraw Hill Education
2 Let Us C, by Yashavant Kanetkar, BPB Publications
3 Fundamentals of Computing and Programming in C, by Pradip Dey, Manas Ghosh, Oxford
University Press
4 How to Solve it by Computer, by R.G. Dromey, Pearson Education
Pedagogy:
Direct classroom teaching
Assignments/Quiz
Continuous assessment
Seminar/Poster Presentation
Course Projects
Internal Evaluation:
The internal evaluation comprised of written exam (40% weightage) along with combination of
various components such as Certification courses, Assignments, Mini Project, Seminar, Unit test,
Quiz, Class Participation etc. where individual component weightage should not exceed 20%.
Curriculum Revision:
Version: 2.0
Drafted on (Month-Year): June-2022
Last Reviewed on (Month-Year): -
Next Review on (Month-Year): June-2025
Page 5 of 5