You are on page 1of 5

Course Title: Computer Fundamentals and C Programming

Course level: PG Credit units:05


Course Type: CSIT634 L T P/ SW/ TOTAL
S FW CREDI
Course Objectives: The primary objective of this course is to T
Make student understand the basics of computers and programming languages.
UNITS
Understand all the components of C, including the C language, the C Preprocessor, and the C Standard Library.
3 - 4 - 5
Provide in-depth knowledge of memory management, testing and debugging, complex declarations and expression
evaluation, building and using libraries.

Student Learning Outcomes:


After successful completion of this course, the student will be able to
Apply the fundamental of programming language such as variables, values, types, assignment, control flow, handling files.
Analyze the principles of an imperative, functional, logic oriented programming language.
Assess programming languages critically and in a scientific manner.
Explore how to use the concepts of programming languages and make it run in actual environment.
Explain about the interfaces of different hardware products used to communicate with programming platform.

Course Contents/Syllabus:
Weightage (%)
Module I: Introduction to Computer Fundamentals 10
History of computers,Basic Computer Organization, Computer Hardware Components, Disk, Primary Memory RAM,
ROM, Secondary Memory, Keyboard, Mouse, Printer, Monitor, CD etc.
Computer Software: Introduction to Application software, System Software.
Compilers, Interpreters, Assembler, Linker, Loader, Basic Operating System Concepts.

Module II: Introduction to C 15


Character Set, Identifier and Keywords, Data Types and Constants, Variables,Enumerated Data type.
Arithmetic Operators, Unary Operators, Relational and Logical Operators, Assignment and Condition Operators,
Library Functions. Preprocessor statement, Command Line argument

Module III : Control Statements 10


Preliminaries, Branching With If Else Structure, Looping Statements (While, Do-While, For), Switch Statement, Break
and Continue Statement,goto and exit.

Module IV : Functions 15
Description of getchar () FUNCTION, Description of putchar () Function, Description of scanf () Function, Description
Of printf () Function, Description of Gets () Function, Description of Puts () Function.
Introduction to Functions, Necessity Of Functions, Defining and Accessing Functions, Prototype of a Function, Passing
Arguments and Receiving Values from Functions, Call by Value and Call by Reference Functions,recursion.

Module V: Arrays

Defining an Array, Processing an Array, Passing an Array to a Function, Multidimensional Arrays, Strings as a Special 15
case of a Character String.

Module VI: : Pointers 15


Fundamentals of Pointers, Declaration of a Pointer Variable, Passing Pointers to a Function. Pointers and One
Dimensional Array, Dynamic Memory Allocation, Operations on Pointers, Array of Pointers, Passing Functions to other
Functions.

Module VII: Structure and Unions &Data files 20

Definition, Processing of Structure, typed of Statement as User Defined Variable, Structure and Pointers, Passing
Structure to Functions. Union, Difference between Structure & Union. Opening and Closing Data Files, Creating a Data
File, Processing of Data File, Unformatted Data Files.

Pedagogy for Course Delivery: Subjects will be taught using lectures and practicals based methods. Focus will be on making student understand the basics of
C programming.

List of Experiments:
1. Write a program to shift input data by 2 bits left and right.
2. Write a program to use bitwise & operator between 2 integer and display the result.
3. Write a program to input 3 numbers and find the biggest and smallest using nested if.
4. Write a program to enter a year and find the number of:
a. Minutes
b. Hours
c. Days
d. Months
e. Seconds
5. Write a program to find the sum of even and odd numbers using switch, if, if..else, nested if between 1 and 20.
6. Write a program to find the numbers between 1 and 100 that are not divisible by 2, 3 and 5.
7. Write a program to simulate a digital clock.
8. Write a program to find the sum of its digits till the result is in single digit.
9. Write a program to find the factorial of a given number.
10. Write a program to obtain the sum of the diagonal elements of matrices.
11. Write function to add, subtract, multiply & divide two complex numbers (x+iy) & (a+ib).
12. Write a program to find the roots of a quadratic equation with each condition.
13. Write a program to find numbers between 7 and 100 which is exactly divisible by 4 and is divisible by either 5 or 6.
14. Write a program to convert:
a. Binary to Decimal
b. Decimal to Binary
c. Binary to Hexadecimal
15. Write a program to perform Arithmetic operation on an array i.e. Addition, Subtraction, Multiplication and Division and store the result in another array.
16. Write a program to perform following string operation: with string functions & without string functions
a. Reverse a string
b. Concatinate 2 string strcat()
c. Compare 2 string strcmp(), strcmpi()
17. Write a program to detect the occurrence of a number in a string.
18. Write a program to accept a string up to 15 character, and display the position of a character in a separate line.
19. Write a program to display and count the number of vowels in a string.
20. Write a program to generate a palindrome.
21. Write a program to add to pointer addresses of a pointer variable.
22. Write a program to find the factorial of a number using recursion.
23. Write a program to perform different arithmetic operations using pointers
24. Write a program to obtain prime factors of any integer number using functions i.e. 24 -> 2, 2, 2, & 3.
25. Write a program to find the sum of 5 digit number:
a. Without using recursion
b. With using recursion.
26. Write a program to obtain Fibonacci series by using recursion.
27. Write a program to create, display, modify and append a file (sequential file).
28. Write a program to copy the content of one file to another.
29. Write a program that tells a user to input name of text file,read this file,and replaces each occurrence of the character x with uppercase(X).
30. Write a program to create a file that contains information about a student.It consist of rollno,name and address.Program should also print all the records

Assessment/ Examination Scheme:

Theory L/T (%) Lab/Practical/Studio (%) Total

60 40 100

Theory Assessment (L&T):


Continuous Assessment/Internal Assessment End Term
Examination
Components (Drop A Mid Term Presentation Viva
down) EE
Weightage (%) 5 10 10 5
70

Lab/ Practical/ Studio Assessment:

Continuous Assessment/Internal Assessment End Term Examination


Components (Drop Attendance Mid term Lab Record Continuous Viva Practical viva
down Assessment
Weightage (%) 5 10 10 10 5 40 20

Text & References:


Text:
E. Balagurusamy, Problem Solving through C language, TMH publication, Fourth Edition, 2008.
Peter Nortons, Introduction to Computers, TMH, Sixth Edition,2006.
Brian W. Kernighan, Dennis M. Ritchie, C Programming Language, 2nd Edition,1988.
References:
Yashwant Kanetkar, Let us C, BPB Publication,8th Edition 2008.
P.K. Sinha, Computer Fundamentals, BPB Publications, 4th Revised Edition, 2004.
Yashwant Kanetkar, Understanding Pointers in C , BPB Publications,,3rd Edition,2003

You might also like