Prog in C
Prog in C
Subject Name:Prog in C
Course Pack
Faculty Name: Mohit Saini
BCA-I-Programing of C
Table of Contents
BCA-I-Programing In C...................................................................................................3
Course Introduction..........................................................................................................3
Course Objectives:......................................................................................................................3
Syllabus.............................................................................................................................3
Session Plan.......................................................................................................................5
Course Objectives:......................................................................................................................8
Investigate techniques for tuning your C code Expected Course Outcomes:............................8
Mapping of Course Outcomes and Programme Outcomes........................................................9
Evaluation Scheme....................................................................................................................10
Course Assessment..........................................................................................................14
Evaluation.................................................................................................................................14
Continuous Evaluation and Grading:.......................................................................................14
Assignment – 1................................................................................................................17
Assignment - 2.................................................................................................................18
About Contact Management System in C:.........................................................................19
Project-2..........................................................................................................................20
About Library Management System Project in C:...................................................................20
Reference Material..........................................................................................................24
2
BCA-I-Programing in C
BCA-I-Programing In C
Course Introduction
This is a course in programming in C. No prior programming experience is assumed;
however, mathematical maturity at the level of a second year science or engineering
undergraduate is assumed.We emphasize solving problems using the language, and introduce
standard programming techniques like alternation, iteration and recursion. We will briefly
glimpse the basics of software engineering practices like modularization, commenting, and
naming conventions which help in collaborating and programming in teams.Given a problem,
we pay attention to the following questions:
CO3: Approach the programming tasks using techniques learned and write pseudo-code.
(Individual assignments quiz and exercise).
CO4: Write the program on a computer, edit, compile, debug, correct, recompile and run
it. (Individual assignments quiz and exercise).
CO5: Identify tasks in which the numerical techniques learned are applicable and apply
them to write programs, and hence use computers effectively to solve the task(Individual
assignments quiz and exercise).
3
BCA-I-Programing of C
CO6: Write the program on a computer, edit, compile, debug, correct, recompile and run it.
(team assignment).
Syllabus
UNIT-I: Programming in C: History, Introduction to C Programming
Languages, Structure of C programs, compilation and execution of C
programms. Debugging Techniques, Data Types and Sizes, Declaration of
variables, Modifiers, Identifiers and keywords, Symbolic constants, Storage
classes (automatic, external, register and static), Enumerations, command line
parameters, Macros, The C Preprocessor
UNIT-II: Operators: Unary operators, Arithmetic & logical operators, Bit wise
operators, Assignment operators and expressions, Conditional expressions,
precedence and order of evaluation. Control Statements: if-else, switch, break,
continue, the comma operator, go to statement..
UNIT-III: Loops: for, while, do-while. Functions: built-in and user-defined,
function declaration, definition and function call, parameter passing: call by
value, call by reference, recursive functions, multifile programs.
UNIT-IVArrays: Linear arrays, multidimensional arrays, Passing arrays to
functions, Arrays and strings. Structure and Union: Definition and differences,
self-referential structure. And address of (&) operator, pointer to pointer,
Dynamic Momory Allocation, calloc and malloc functions, array of pointers,
function of pointers, structures and pointers.
UNIT-IV: File: File Handling in C)
Suggested Readings
Text Books:
1. Let us C by Yashavant Kanetkar
2. C: The complete reference by Herbert Schildt
3. Programming in ANSI C by E. Balaguruswamy.
4. 21st Century C by Ben Kiemens.
Reference books:
1. V. Rajaraman, "Fundamentals of Computers", PHI
4
BCA-I-Programing in C
Reference Material:
Practical Exercise:
1. Attach in separate file
Videos:
Introduction of C
https://www.youtube.com/watch?v=pw0uGPmGNl8
Loop in C
https://www.youtube.com/watch?v=BpeIfof3VBk
Arrays & Pointers in C
https://www.youtube.com/watch?v=55l-
aZ7_F24&list=PLBlnK6fEyqRjoG6aJ4FvFU1tlXbjLBiOP
Structures in C
https://www.youtube.com/watch?v=Ranc3VvjI88
https://www.youtube.com/watch?
v=CDqKxr4TnLc&list=PL9FuOtXibFjVzB2Bm8WalF_SZcIhpZB6X
Others: Students are also expected to take note of all the latest developments relating to the
course contents covered above
5
BCA-I-Programing of C
1] Semester I
2] Year 2022
3] Name of Faculty Mr. Mohit kumar saini
4] E-mail [email protected]
5] Mobile 9759581657
6] Time of meeting 1240 – 1440 hrs
students (by Appointment)
7] Class Schedule
a) No of lectures 48
b)No of Tests 2
c) No of Projects & 2
Assignments
e) No of Workshops 1
f) No of guest lectures 1
g) No of Industry visits 1
8] Pedagogy: Lectures, Assignments, Video based discussions, Project -
Discussions, Written tests, Surprise Quiz
9] Out bound student Minor Project
activities
6
BCA-I-Programing in C
Session Plan
Cla Date Topic Planned To Be Covered Date Class room &
ss Delivery when external
Sec Planned planned activities
tion topic including
No. actually case/case
covered lets,PBLexercis
es, role plays,
debates, guest No. of
lectures, CO
students
industry visits, present Mapping
industry
immersion
exercises,
assignments/
tests, etc.
planned/
actuallyconduct
ed
1 16/9/20 Introduction of Computer PPT & White Board CO1
22
2 17/9/20 Introduction to C Programming PPT & White Board CO1
22 Languages
3 19/9/20 Structure of C programs PPT & White Board CO1
22
4 20/9/20 compilation and execution of C PPT & White Board CO1
22 programs.DebuggingTechniques
5 21/9/20 Data Types and Sizes PPT & White Board CO1
22
6 22/2022 Declaration of variables, PPT & White Board CO1
Modifiers, Identifiers and
keywords
7 23/9/20 Basic C Programs LAB Work CO1
22
8 24/9/20 Basic C Programs PPT & White Board CO1
22
9 3/9/202 Symbolic constants, Storage PPT & White Board CO1
2 classes (automatic, external,
register and static)
10 1/10/20 Enumerations, command line LAB Work CO1
22 parameters
7
BCA-I-Programing of C
8
BCA-I-Programing in C
9
BCA-I-Programing of C
v=Ranc3VvjI88
39 2/12/2022 And address of (&) operator PPT & White Board CO4
10
BCA-I-Programing in C
Course Assessment
Evaluation Scheme
S.No Component Dates/After Evaluation Total Marks Weight age
of Evaluation lecture No. Methodology on 100
points scale
1 Quiz- 1& 2 MCQ 3 10%
2 Mid-Term Knowledge of 9 30%
the Subject
3 Assignment Hardcopy 6 20%
/Softcopy
submission
4 Class Content 3 10%
Participation Presentation &
case Study
Presentations
5 End Term Knowledge of 9 30%
the Subject
Total 30 100%
Presentations
outcomes Continuous
Assignment
case Study
Tests/Quiz
Projects &
Content
for evaluation
term
tools
✔ - ✔ ✔ 60%
CO 1
✔ ✔ ✔ ✔ 60%
CO 2
✔ ✔ - ✔ 60%
CO 3
CO 4 ✔ ✔ ✔ - 60%
CO 5 ✔ ✔ ✔ ✔ 60%
11
BCA-I-Programing of C
12
of
PO
CO5
CO4
CO3
CO2
CO1
13
Strength
Mapping
COs/POs
each
Provide a strong foundation in fundamentals of
computers. Prepare the students with exceptional skills
3
3
3
3
2
2.8
PO1
3 = Strongly Mapped
To provide the imperatives knowledge of science and
BCA-I-Programing in C
1= Weakly Mapped
2= Moderately Mapped
engineering concepts fundamental for a computer
2
3
3
3
3
2.8
PO2
2
3
3
3
3
2.8
PO3
3
3
3
3
3
3
institutes by incorporating the latest developments into
PO4
the curriculum.
2
2
2
2
2
2
Mapping of Course Outcomes and Programme Outcomes
PO5
3
3
3
3
2
applications, evaluate and recognize potential risks and
2.8
PO6
engineering practice.
BCA-I-Programing of C
Threshold Value
Presentation &
Midterm &End
Presentations
outcomes Continuous
Assignment
case Study
Tests/Quiz
Projects &
Content
for evaluation
term
tools
✔ - ✔ ✔ 60%
CO 1
✔ ✔ ✔ ✔ 60%
CO 2
✔ ✔ - ✔ 60%
CO 3
CO 4 ✔ ✔ ✔ - 60%
CO 5 ✔ ✔ ✔ ✔ 60%
14
BCA-I-Programing in C
Class Quiz-1
15
BCA-I-Programing of C
Individual Assignment
Individual Assignment: To understand the concept of data structures.
Assignment – 1
4 Accept principal amount, rate of interest, and duration from the user. Display
Interest Amount and Total Amount (Principal + Interest).
5 Accept the salary of an employee from the user. Calculate the gross salary on the
following basis:
Basic HRA DA .
1 - 4000 10% 50%
4001 – 8000 20% 60%
8001 - 12000 25% 70%
12000 and above 30% 80%
6 Accept any number from the user. Display whether the number is divisible by 100
or not.
16
BCA-I-Programing in C
Solutions obtained
Recommendations
dispute, its causes
and implication of
Course
Identification of
and feasibility
outcomes Assignmen
Intensity of
for t Questions
disputes
analysis
Issues
✔ - - -
CO 2
CO 3 - ✔ ✔ ✔
Plagiarism Policy:
Up to 25 % plagiarism – excluded
More than 25% - Rewrite and submit within 2 days
17
BCA-I-Programing of C
Individual Assignment 2
Individual Assignment: To understand the concept of Class, Constructor, Destructor.
18
BCA-I-Programing in C
Style
English
grammar and usage
Overall Quality of the
Expression of project
Course
outcomes Project
its findings
for Questions
Project
Team Effort
including
Writing
CO 4 ✔ ✔ ✔ ✔
CO 5 ✔ ✔ ✔ ✔
Plagiarism Policy:
Up to 25 % plagiarism – excluded
More than 25% - Rewrite and submit within 2 days
19
BCA-I-Programing of C
20
BCA-I-Programing in C
Project-1
You can list contacts by name, phone no., address and email. File handling has been used to record all
data. I have used data structure to store the user name, email and contact. Overall, understanding the
simple source code of this project will teach you how to add, edit, search, list and remove data using
file.
The source code for contact management system project in C is complete and totally error-free. It is
short and simple – just over 200 lines. You can download the source code and application file from
the link below and compile it in Code::Blocks IDE.
Add new contacts: with information such as name, phone number, address, and email
List all contacts: lists all the contacts stored in file with their respective contact details
Search contacts: based on name and phone number
Edit contacts: edit information given while adding the contacts – name, phone number, address,
and email
Delete contacts: deletes contacts from file
This project is somewhat similar to the Phonebook application mini project we published earlier. Both of these
mini projects use file handling and data structures. They are built just as a console application suitable for
beginners to learn and make simple mini projects.
21
BCA-I-Programing of C
Name: _________________________
Course: BCA-I-Programming of C
Note: Attempt any four questions from section A and any three questions from section B.
No
SECTION A
1 5 CO1
Draw a flowchart to find the sum of first 20
natural numbers?
2 5 CO2
What is data type? Write about C data type with
example
3 5 CO1
What is the meaning of compiling the source
code?
4 5 CO1
What is the header file in C? Explain with
example CO3
5 5 CO1
What is data type? Write about C data type with
example CO2
6 5 CO1
What is the difference between DELETE and TRUNCATE
statements?
Section B
22
BCA-I-Programing in C
CO6
C04
I. Keyword
II. Identifiers
III. Array
IV. Function
V. Switch Statements
23
BCA-I-Programing of C
Name: _________________________
Course: BCA-I-Programming of C
Note-Attempt any four question from section A and any three question from section B
No
SECTION A
CO2
CO3
C03
24
BCA-I-Programing in C
SECTION B
25
BCA-I-Programing of C
Reference Material
26