Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY

(Approved by AICTE and Affiliated to Anna University, Chennai)


PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

PREFACE OF THE COURSE

BRANCH : COMPUTER SCIENCE AND ENGINEERING

BATCH :

ACADEMIC YEAR :

YEAR :I

SEMESTER : 2nd

SECTION :1

TOTAL NO OF STUDENTS :

SUBJECT CODE : CS8251

SUBJECT NAME : Programming in C

NAME OF THE FACULTY :

DESIGNATION : Assistant Professor

FACULTY IN-CHARGE HOD/S&H


LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


R3003

CS3251 PROGRAMMING IN C

COURSE OBJECTIVES:

 To understand the constructs of C Language.

 To develop C Programs using basic programming constructs

 To develop C programs using arrays and strings

 To develop modular applications in C using functions

 To develop applications in C using pointers and structures

 To do input/output and file handling in C

UNIT I BASICS OF C PROGRAMMING

Introduction to programming paradigms – Applications of C Language - Structure of C program - C programming:


Data Types - Constants – Enumeration Constants - Keywords – Operators: Precedence and Associativity -
Expressions - Input/Output statements, Assignment statements – Decision making statements - Switch statement -
Looping statements – Preprocessor directives - Compilation process

UNIT II ARRAYS AND STRINGS

Introduction to Arrays: Declaration, Initialization – One dimensional array –Two dimensional arrays - String
operations: length, compare, concatenate, copy – Selection sort, linear and binary search.

UNIT III FUNCTIONS AND POINTERS

Modular programming - Function prototype, function definition, function call, Built-in functions (string functions,
math functions) – Recursion, Binary Search using recursive functions –Pointers – Pointer operators – Pointer
arithmetic – Arrays and pointers – Array of pointers – Parameter passing: Pass by value, Pass by reference.

UNIT IV STRUCTURES AND UNION

Structure - Nested structures – Pointer and Structures – Array of structures – Self referential structures – Dynamic
memory allocation - Singly linked list – typedef – Union - Storage classes and Visibility.
UNIT V FILE PROCESSING

Files – Types of file processing: Sequential access, Random access – Sequential access file - Random access file -
Command line arguments.
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

COURSE OUTCOMES:
Upon completion of the course, the students will be able to
CO1: Demonstrate knowledge on C Programming constructs
CO2: Develop simple applications in C using basic constructs
CO3: Design and implement applications using arrays and strings
CO4: Develop and implement modular applications in C using functions.
CO5: Develop applications in C using structures and pointers.
CO6: Design applications using sequential and random access file processing.
TOTAL : 45
PERIODS
TEXT BOOKS:
1. ReemaThareja, “Programming in C”, Oxford University Press, Second Edition, 2016.
2. Kernighan, B.W and Ritchie,D.M, “The C Programming language”, Second Edition, Pearson Education, 2015.

REFERENCES:
1. Paul Deitel and Harvey Deitel, “C How to Program with an Introduction to C++”, Eighth edition, Pearson
Education, 2018.
2. Yashwant Kanetkar, Let us C, 17th Edition, BPB Publications, 2020.
3. Byron S. Gottfried, “Schaum’s Outline of Theory and Problems of Programming with C”, McGraw-Hill
Education, 1996.
4. Pradip Dey, Manas Ghosh, “Computer Fundamentals and Programming in C”, Second
5. Edition, Oxford University Press, 2013.
6. Anita Goel and Ajay Mittal, “Computer Fundamentals and Programming in C”, 1st Edition, Pearson Education,
2013.
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

COURSE INFORMATION SHEET


DEPARTMENT VISION AND MISSION
Vision:

 To become the preferred institution producing preferred professionals through quality education
and training

Mission:

 To become a center of excellence in technical education providing youth with opportunity and
environment for higher education and research

PROGRAMME EDUCATIONAL OBJECTIVES:

PEO of the Department of CSE Engineering are,


PEO 1 – Knowledge : Gain knowledge and skills in CSE engineering which will enable them to have a
career and professional accomplishment in the public or private sector organizations.
PEO 2 – Skills : Become consultants on complex real life CSE Engineering problems related to software
development like websites, webpages, android apps, robots etc.
PEO 3 _ Design Analysis : Become entrepreneurs and develop processes and technologies to meet
desired infrastructure needs of society and formulate solutions that are technically sound, Economically
feasible,and socially acceptable.
PEO 4 – Attitude : Perform investigation for solving CSE Engineering problems by conducting research
using modern equipment and software tools.
PEO 5 – Entrepreneurship : Function in multi-disciplinary teams and advocate policies, systems,
processes and equipment to support CSE engineering.

PROGRAM SPECIFIC OUTCOMES (PSOs):

Bachelor of CSE Engineering curriculum is designed:


PSO 1 – Knowledge of CSE Engineering discipline:
Demonstrate in-depth knowledge of CSE Engineering discipline, with an ability to evaluate,analyze and
synthesize existing and new knowledge.
PSO 2 – Critical analysis of CSE Engineering problems and innovation:
Critically analyze complex CSE Engineering problems, apply independent judgment for synthesizing
information and make innovative advances in a theoretical, practical and policy context.
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

PSO 3 _ Conceptualization and evaluation of engineering solutions to CSE Engineering:


Issues Conceptualize and solve CSE Engineering problems, evaluate potential solutions and arrive at
technically feasible, economically viable and environmentally sound solutions with due consideration of
health, safety, and socio cultural factors.

PROGRAMME OUTCOMES:
Engineering Graduates will be able to:
PO 1 - Engineering knowledge:
Apply the knowledge of mathematics, science, engineering fundamentals, and an engineering
specialization to the solution of complex engineering problems.
PO 2 - Problem analysis:
Identify, formulate, review research literature, and analyze complex engineering problems reaching
substantiated conclusions using first principles of mathematics, natural sciences, and engineering
sciences.
PO 3 - Design/development of solutions:
Design solutions for complex engineering problems and design system components or processes that
meet the specified needs with appropriate consideration for the public health and safety, and the cultural,
societal, and environmental considerations.
PO 4 - Conduct investigations of complex problems:
Use research-based knowledge and research methods including design of experiments, analysis and
interpretation of data, and synthesis of the information to provide valid conclusions.
PO 5 - Modern tool usage:
Create, select, and apply appropriate techniques, resources, and modern engineering and IT tools
including prediction and modeling to complex engineering activities with an understanding of the
limitations.
PO 6 - The engineer and society:
Apply reasoning informed by the contextual knowledge to assess societal, health, safety, legal and
cultural issues and the consequent responsibilities relevant to the professional engineering practice.
PO 7 - Environment and sustainability:
Understand the impact of the professional engineering solutions in societal and environmental contexts,
and demonstrate the knowledge of, and need for sustainable development.
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


PO 8 - Ethics:
Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
PO 9 - Individual and team work:
Function effectively as an individual, and as a member or leader in diverse teams, and in
multidisciplinary settings.
PO 10 - Communication:
Communicate effectively on complex engineering activities with the engineering community and with
society at large, such as, being able to comprehend and write effective reports and design documentation,
make effective presentations, and give and receive clear instructions.
PO 11 - Project management and finance:
Demonstrate knowledge and understanding of the engineering and management principles and apply
these to one’s own work, as a member and leader in a team, to manage projects and in multidisciplinary
environments.
PO 12 - Life-long learning:
Recognize the need for, and have the preparation and ability to engage in independent and life-long
learning in the broadest context of technological change
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

COURSE PLAN
Subject code & Name: CS8251& PROGRAMMING IN C
Batch: Department Name: S&H
Academic year: Year: I
nd
Semester: 2 section: 1
Name of the faculty: Total No of Students:

COURSE OBJECTIVE:
To understand the constructs of C Language.

 To develop C Programs using basic programming constructs

 To develop C programs using arrays and strings

 To develop modular applications in C using functions

 To develop applications in C using pointers and structures

 To do input/output and file handling in C


COURSE OUTCOMES:
Upon completion of the course, the students will be able to
CO1: Demonstrate knowledge on C Programming constructs
CO2: Develop simple applications in C using basic constructs
CO3: Design and implement applications using arrays and strings
CO4: Develop and implement modular applications in C using functions.
CO5: Develop applications in C using structures and pointers.
CO6: Design applications using sequential and random access file processing.

CO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO PSO3
2
1 1 2 2 1 2 1 1 1 2 - 3 2 1 2 -
2 2 2 2 1 2 1 1 1 2 - 3 3 2 2 -
3 2 3 2 1 2 1 1 1 2 - 3 2 2 2 -
4 3 2 2 1 3 1 1 1 2 - 3 3 2 2 -
5 2 3 3 1 2 1 2 1 2 - 3 2 2 3 -
6 2 2 3 2 1 2 - - 2 1 2 2 2 2
CO 2 2 2 1 2 1 1 1 2 - 3 2 2 2 -
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Low
Justifications
Medium CO Mapping
High
Apply the knowledge of mathematics,
PO1- Programming, engineering fundamentals, and an
H
CO1,CO2,CO3,CO4,CO5,CO6 engineering specialization to the solution of complex
engineering problems.
Identify, formulate, review research literature, and
PO2- analyze complex engineering problems reaching
M
CO1,CO2,CO3,CO5,CO6 substantiated conclusions using first principles of
mathematics, programming, and engineering sciences.
Design solutions for complex engineering problems and
design system components or processes that meet the
PO3-
M specified needs with appropriate consideration for the
CO1,CO2,CO3,CO4
public health and safety, and the cultural, societal, and
environmental considerations.
Use research-based knowledge and research methods
PO4- including design of experiments, analysis and
M
CO4 interpretation of data, and synthesis of the information to
provide valid conclusions.
Create, select, and apply appropriate techniques,
PO5- resources, and modern engineering and IT tools including
L
CO1,CO2,CO3,CO4,CO5 prediction and modeling to complex engineering
activities with an understanding of the limitations.
Apply reasoning informed by the contextual knowledge
PO6- to assess societal, health, safety, legal and cultural issues
L
CO1,CO2,CO3,CO4,CO5 and the consequent responsibilities relevant to the
professional engineering practice.

Note: Enter correlation levels 1,2,3 as defined bellow


LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

1: Slight (Low) 2: Moderate (Medium) 3: Substantial (High)

CONTENT BEYOND SYLLABUS:


Proposed Actual Delivery CO PO
Period Topics to be covered BL
Date Date Date Mapped Mapped
1

Along with the above the following activities are also to be planned and included:

Activity Name No of Activities per semester

Assessment Test 2

Model Exams 1

Mini Project

Quiz/ Role Play

Seminar/ Experiment
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

UNIT-1: BASICS OF C PROGRAMMING

Proposed Actual Delivery


Period Topics to be covered Reference Remarks
Date Date Method
Introduction to programming
C&T
1 paradigms and application of c TB-1 -
VL
languages

Structure of c program and data C&T


1 TB-1 -
types VL

Constants, keywords and


1 C&T TB-1 -
operators

C&T
1 Precedence and associativity TB-1 -
VL

1 Input/output statements C&T TB-1 -

C&T
1 Assignment Statements TB-1 -
VL

C&T
1 Decision Making statements TB-1 -
VL

Switch statements and looping C&T


1 TB-1 -
statements VL

Pre-processor directives and


1 C&T TB-1 -
compilation process

Total No
09 No of Hours Taken 09
of Hrs
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Signature of HOD

UNIT-2: Arrays and Strings

Proposed Actual Delivery


Period Topics to be covered Reference Remarks
Date Date Method

1 Introduction of Arrays C&T TB-1 -

Array declaration and


1 C&T TB-1 -
initialization

One dimensional array and two


1 C&T TB-1 -
dimensional array

1 String operations C&T TB-1 -

C&T
1 Selection sort, merge sort TB-1 -
VL

C&T
1 Quick sort and heap sort TB-1 -
VL

1 Bubble sorting C&T TB-1 -

C&T
1 Insertion sorting TB-1 -
VL

Search:Binary Search, Linear C&T


1 TB-1 -
Search VL

Total No 09 No of Hours Taken 09


of Hrs
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Signature of HOD

UNIT-3: Functions and pointers

Proposed Actual Delivery


Period Topics to be covered Reference Remarks
Date Date Method

Modular programming ,function C&T


1 TB-1 -
prototypes VL

C&T
1 Function definition,function call TB-1 -
VL

C&T
1 Built in function,recursion TB-1 -
VL

Binary search using recursion C&T


1 TB-1 -
functions VL

1 Pointers and pointers operators C&T TB-1 -

1 Pointer arithmetc C&T TB-1 -

C&T
1 Array and Pointers TB-1 -
VL

C&T
1 Array of pointers TB-1 -
VL

Parameter passing: pass by value


1 C&T TB-1 -
and pass by reference

Total No 09 No of Hours Taken 09


of Hrs
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Signature of HOD

UNIT-4: Structures and Union

Proposed Actual Delivery


Period Topics to be covered Reference Remarks
Date Date Method

C&T
1 Structure and nested structures TB-1 -
VL

C&T
1 Pointer and structures TB-1 -
VL

C&T
1 Array of structures TB-1 -
VL

C&T
1 Self referential structures TB-1 -
VL

1 Dynamic memory allocation C&T TB-1 -

1 Singly linked list C&T TB-1 -

C&T
1 Typedef and types TB-1 -
VL

1 Union and structure of union C&T TB-1 -

C&T
1 Storage classes and visibility TB-1 -
VL
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


No of Hours Taken 09
Total No
09
of Hrs
Signature of HOD

UNIT-5: File Processing

Proposed Actual Delivery


Period Topics to be covered Reference Remarks
Date Date Method

C&T
2 Files and Types of file processing TB-1 -
VL

2 Sequential access file C&T TB-1 -

C&T
2 Random access file TB-1 -
VL

C&T
1 Error handling in c TB-1
VL

C&T
2 Command line arguments TB-1 -
VL

No of Hours Taken 09
Total No
09
of Hrs
Signature of HOD

DELIVERY METHODS:
C&T: Chalk and Talk
PPT: power point presentation
VL: Video Lecture
LORD JEGLORD JEGANNATH COLLEGE OF ENGINEERING & TECHNOLOGY
(Approved by AICTE and Affiliated to Anna University, Chennai)
PSN Nagar, Ramanathichanputhur, Kumarapuramthoppur Post,
Kanyakumari District – 629 402, TAMILNADU
Phone: 04652-254919 Mobile: 9443220080 Fax: 04652 - 254884
Website: www.ljcet.org, e-mail: principalljcet@yahoo.co.in

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

TEXT BOOKS:

1. ReemaThareja, “Programming in C”, Oxford University Press, Second Edition, 2016.


2. Kernighan, B.W and Ritchie,D.M, “The C Programming language”, Second Edition, Pearson Education, 2015.

REFERENCES:

1. D.E. Knuth. The Art of Computer Programming, volume 2: Seminumerical Algorithms. Addison-Wesley, 3rd
edition, 1998.
2. D.E. Knuth. The Art of Computer Programming, volume 3: Sorting and Searching. Addison-Wesley, 2nd
edition, 1998.
3. B.W. Kernighan and R. Pike. The Practice of Programming. Addison-Wesley, 1999. This book is a great source
of expert advice on quality software design. It covers topics like coding-style, program design, debugging, testing,
efficiency, and portability.

WEB RESOURCES:

 Link: https://codeforwin.org/
 Link: https://www.geeksforgeeks.org/c-
programming-language/
 Link: http://en.cppreference.com/w/c.
 Link: http://learn-c.org/
 Link: https://www.cprogramming.com/
 Link: Linuxtopia

Prepared By Approved By

Signature

Name

Designation Asst. Prof

Submitted Date

You might also like