Programming in C

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204

GOVERNMENT POLYTECHNIC, PUNE


‘120 – NEP’ SCHEME
PROGRAMME DIPLOMA IN CE/EE/ET/ME/MT/CM/IT/DDGM
PROGRAMME CODE 01/02/03/04/05/06/07/08
COURSE TITLE PROGRAMMING IN C
COURSE CODE CM21204
PREREQUISITE COURSE CODE & TITLE NA
I. LEARNING & ASSESSMENT SCHEME

Learning Scheme Assessment Scheme


Actual
Based on LL &
Contact Theory Based on
Credits TSL
Course Hrs./Week SL
Course Course Title Paper Total
Type SLH NLH Practical
Code Duration Marks
CL TL LL FA- SA-
Total FA-PR SA-PR SLA
TH TH
Max Max Max Min Max Min Max Min Max Min
CM21204 PROGRAMMIN DSC 4 - 4 - 8 4 -- 30 70 100 40 50 20 25@ 10 - - 175
G IN C

Total IKS Hrs for Term: 0 Hrs


Abbreviations: CL-Classroom Learning, TL-Tutorial Learning, LL-Laboratory Learning, SLH-Self Learning Hours, NLH-Notional
Learning Hours, FA - Formative Assessment, SA -Summative assessment, IKS – Indian Knowledge System, SLA- Self Learning
Assessment
Legends: @-Internal Assessment, # - External Assessment,*# - Online Examination,@$ - Internal Online Examination
Note:
FA-TH represents an average of two class tests of 30 marks each conducted during the semester.
1. If a candidate is not securing minimum passing marks in FA-PR (Formative Assessment - Practical) of any course, then
the candidate shall be declared as 'Detained' in that semester.
2. If a candidate does not secure minimum passing marks in SLA (Self Learning Assessment) of any course, then the candidate shall
be declared as 'fail' and will have to repeat and resubmit SLA work.
3. Notional learning hours for the semester are (CL + LL + TL + SL) hrs. * 15 Weeks
4. 1 credit is equivalent to 30 Notional hours.
5. * Self-learning hours shall not be reflected in the Timetable.
6.* Self-learning includes micro-projects/assignments/other activities.

II. RATIONALE:
The C programming language is a general-purpose, operating system-agnostic, and procedural language that supports
structured programming. Numerous companies use C as a programming language for embedded systems development,
application development, and socket programming. C programming acts as a foundation for higher level programming
which includes problem solving, building logic, developing algorithms and flowcharts. All the concepts learned will assist
the student to grasp advanced languages at ease.

III. COURSE-LEVEL LEARNING OUTCOMES (CO'S)


Students will be able to achieve & demonstrate the following CO's on completion of course-based learning
CO1: Establish Strong foundation in building procedural programs with ‘C’ language tokens.
CO2: Develop C program involving branching and looping statements.
CO3: Implement programs using Arrays and Strings.
CO4: Write C program using predefined and user-defined functions.
CO5: Execute programs using pointers.
CO6: Create and Implement user -defined data types such as Structures.

GOVT. POLYTECHNIC, PUNE. Page 1


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204
IV. THEORY LEARNING OUTCOMES AND ALIGNED COURSE CONTENT
Suggested
S Theory Learning Learning content mapped with TLO's. Learning Relev
r. Outcomes (TLO'S) Pedagogies ant
N aligned to CO's. COs
o
UNIT-I INTRODUCTION TO COMPUTER PROGRAMMING (CL Hrs-08, Marks-10 )
TLO 1.1 Introduction to 1.1 Introduction to Computing: Introduction, Art of
Programming. Programming through Algorithms and Flowcharts.
TLO 1.2 To know the history 1.2 Overview of C: History and importance of C, Basic
structure of C program, executing a C program.
and basic structure of C. 1.3 Constants, Variable and Data Types: Introduction,
TLO 1.3 Identify the given Character Set, C Tokens, Keywords and Identifiers,
building blocks of a C Program. Constants, Variables, Data Types, Declaration of
TLO 1.4 Use basic constructs Variables, Assigning Values to Variables, Defining
Symbolic Constants,Type def.
like constants, variables , data 1.4 Managing Input and Output Operations: Reading a CO1
types for developing C programs. Character, Writing a Character, Formatted Input, Hands-on
TLO 1.5 Managing Input and Formatted Output. Demonstration
1. Output Operations. 1.5 Operators and Expressions: Introduction, Arithmetic Presentations
Operators, Relational Operators, Logical Operators,
TLO 1.6 Develop C programs Assignment Operators, Increment and Decrement
using Operators and Expressions. Operators, Conditional Operator, Bitwise Operators,
Special Operators, Arithmetic Expressions, Evaluation of
Expressions, Type Conversions in Expressions, Operator
Precedence and Associativity, sizeof operator.

UNIT-II CONTROL STRUCTURES (CL Hrs-08, Marks-10)


TLO 2.1 Write a ‘C’ program 2.1 Decision Making and Branching: Introduction,
using decision making statements Decision Making with IF Statement, Simple IF Statement,
TLO 2.2 Use loop statements in the IF-ELSE Statement, Nesting of IF-ELSE Statements,
C program to solve iterative The ELSE IF Ladder, The Switch statement, The ? : Hands-on
2 problems. Operator, CO2
Demonstration
TLO 2.3 Use appropriate 2.2 Jump Statements: break, continue, goto, return. Presentations
statement to alter the program 2.3 Decision Making and Looping: While loop, for loop,
flow in the loop. do-while loop.
UNIT-III ARRAYS AND STRINGS (CL Hrs-12, Marks-14)
TLO 3.1 Explain the
characteristics of an Array. 3.1 Arrays: Introduction to array: Array Definition,
TLO 3.2 Enlist the types of Initialization of arrays, Types: one- dimensional
Arrays. arrays, two-dimensional arrays, multidimensional
TLO 3.3 Write C Program to arrays. Searching Sorting, Matrix Addition, Hands-on
3 perform operations on one Multiplication, Transpose of a matrix. Demonstration
3.2 Strings: CO3
dimensional array. Presentations
TLO 3.4 Declare, initialize Introduction to String: declaration & initialization
and access elements of two of string, string variables, reading string, writing
dimensional array. string. Concatenation & comparison of two strings,
TLO 3.5 Declare, initialize string handling functions.
and access functions using
String.

GOVT. POLYTECHNIC, PUNE. Page 2


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204

UNIT- IV FUNCTIONS IN C (CL Hrs-12, Marks-14)


4.1 Concept and need of functions,
TLO 4.1 Explain need of
Predefined Functions: Library functions, Math
Functions in C program.
function,
TLO 4.2 Write C Program
4.2 User defined function: Need, syntax,
involving C library
declaration, definition, return values and their
functions.
types, calling a function.Scope of a variable.
TLO 4.3 Write user defined
4.3 Category of functions: Hands-on
functions for given problem
a)Function with no arguments and no return value, Demonstration
in C program CO4
4 b)Function with no arguments and a return value, Presentations
TLO 4.4 Write C Program for c)Function with arguments and no return value,
calling function by ‘value and d)Function with arguments and with return value.
calling function by ‘reference’ 4.4 Nesting of functions, recursion and function
TLO 4.5 Implement recursive with arrays.
functions in C Program 4.5 Dynamic Memory Allocation in C : malloc(),
calloc(), realloc() , free()

UNIT- V POINTERS IN C (CL Hrs-10, Marks-10)


TLO 5.1 Declare and Define 5.1 Pointer: Introduction to pointer Concept. Hands-on
Pointer Variable. Accessing the address of a variable, declaration Demonstration
TLO 5.2 Initialization of of Pointers, Initialization and Accessing of Presentations
pointers and pointer Pointers, chain of pointer, pointer expressions.
expressions. 5.2 Pointer and Array: Array of pointers, Pointer
TLO 5.3 Write C program to to array, pointers as a function argument.
print the address and values of Returning pointer
pointer variables. 5.3 Returning pointer and passing addresses to
5 CO5
TLO 5.4 Write C program to Functions.
perform arithmetic operations
using pointers.
TLO 5.5 Write C Program to
perform operations on Arrays
using Pointers.
TLO 5. 6 Demonstrate pointer
as a function argument.
UNIT- VI STRUCTURES (CL Hrs-10, Marks-12)
TLO 6.1 Define Structure. Hands-on
TLO 6.2 Use the structure for 6.1 Structure : definition, declaring and Demonstration
solving the given problem. accessing, structure initialization, copying and Presentations
TLO 6.3 Demonstrate arrays comparing structure variables, operations on
of structure. structure members, array of structures, array
6 within the structure, structure within structures CO6
TLO 6.4 Understand and
Implement Concept of ,structure and functions, size of structures
Enumerated Data type 6.2 Enumerated Data Type: Create and Implement
Enum in C Program.

GOVT. POLYTECHNIC, PUNE. Page 3


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204
V. LABORATORY LEARNING OUTCOME AND ALIGNED PRACTICAL/ TUTORIAL EXPERIENCES.

Sr Practical/Tutorial/Laboratory Laboratory Experiment / Practical Titles /Tutorial Titles Relev


Numb
. Learning Outcome (LLO) ant
er of
No CO
hrs.
s
1 LLO 1.1 Write logical steps for given
program flow Write/compile/execute simple ‘C’ program: Develop
LLO 1.2 Write the standard English a program using Constants, Variables for different
like statements for programming flow data types. 2 CO1
of given Problem statement
LLO 1.3 Write Simple C program using
constant and variables.
2 LLO 2.1 Use the Relational, Logical, *Implementation of a ‘C’ program based on
Assignment, Increment and Decrement
different operators and expressions. (ex. Arithmetic,
operators for developing C Program. 4 CO1
Relational, Logical, Assignment, Increment and
LLO 2.2 Use the various expressions in
Decrement, etc.)
the C Program.

3
LLO 3.1 Use the Conditional, bitwise *Implementation of a C program based on
Conditional, bitwise and special operators. 2 CO1
operators for developing C Program

*Implementation of a simple C program to take


4
LLO 4.1 Write code for access modifiers. input from the user at run time and display the 2 CO1
output on the screen.
5 LLO 5.1 Write the syntax for various if
statements. Implementation of minimum two C programs using
LLO 5.2 Write C program for any
2 CO2
simple If statement and if..else statement.
problem using If statements.
6 LLO 6.1 Write syntax of if... else and *Implementation of minimum two C programs
if.. else if ladder statements. using nested If ...else statement and if.. else if 2 CO2
ladder.
7 LLO 7.1 Write C program using
Switch statement. *Develop a C program using Switch statements. 2 CO2

8 LLO 8.1 Implement iterative solution


to problem using for loop, while and *Implementation of minimum two C programs
do - - while loop using ‘for loop’, 'while' loop and 'do...while' loop 2 CO2
control statements.

9 LLO 9.1Write the syntax -for


statement. *Implementation of a C program to Print various
LLO 9.2 Write C code for solving a patterns using for loop with break and continue 4 CO2
given problem using For-loop with the statements.
help of break and continue keyword.

GOVT. POLYTECHNIC, PUNE. Page 4


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204
10 LLO 10.1 Declare and initialize the Write C programs based Operations on 1D arrays:
Array. i)Declaration of different data types of array.
LLO 10.2 Write C program for ii)Initialization of array elements.
implementation of one Dimensional 2 CO3
iii)Accessing array elements without loop and with
array. loop.

11 LLO 11.1 Develop Logic for Searching CO3


an element from an array. *Implementation of a C programs based Operations
LLO 11.2 Develop logic for sorting an on 1D arrays: Search an element, sorting array etc. 2
array in ascending/descending order.
LLO 11.3 Write C programs to perform
Searching and Sorting
12 LLO 12.1 Write a C program for *Implementation of a C programs based Operations CO3
operations on 2D Arrays on 2D arrays:
i)Declaration of different data types of array.
2
ii)Initialization of array elements.
iii)Accessing array elements without loop and with
loop.
13 LLO 13.1Write C program for CO3
implementation of two Dimensional Implementation of a C programs based Operations
arrays. on 2D arrays : Addition , Multiplication etc. 2
LLO 13.2 Develop logic for performing
operations on 2D arrays

14
LLO 14.1 Write C programs for print *Implementation of a C program using predefined
string operations using string handling string functions for string comparison, 2 CO3
Functions concatenation, copying etc.

15
LLO 15.1 Write C programs for print *Implementation of a C program without using
string operations without using string predefined string functions for string comparison, 2 CO3
handling Functions concatenation, copying etc.

16 LLO 16.1 Use built-in library Implementation of a C programs on Predefined


functions in C programs Functions 2 CO4

17 LLO 17.1 Write C programs using *Implementation of a programs on User defined


user defined functions functions for following
a)Function with no arguments and no return value,
4 CO4
b)Function with no arguments and a return value,
c) Function with arguments and no return value,
d) Function with arguments and with return value.
18 LLO 18.1Write Recursive functions *Implementation of a C programs based on
in C. i) Recursion 2 CO4
LLO 18.2 Write nested functions in C. ii) Nesting of functions.
19 *Develop a C programs on User defined functions
LLO 19.1 Write user defined functions in for following
2 CO4
C. i)Call by value.
ii)Call by reference.

GOVT. POLYTECHNIC, PUNE. Page 5


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204

20 Implementation of a C program based on declaration


LLO 20.1 Write a C program C program
of Pointers, Initialization and Accessing pointers to 2 CO5
based on Pointers
pointers.
21 *Develop a C program based on
LLO 21.1 Perform operations using
i) Pointer Expressions 2 CO5
pointers.
ii) Array of Pointers
22 *Implementation of a C program based on structure
LLO 22.1 Write a C program based on
definition and initialization. 2 CO6
structure .
23 Implementation of a C program based on structure
LLO 23.1 Write a C program using
within structure. 2 CO6
Structure within Structure.
24 LLO 24.1 Write a C program using Development of a C program based on an array of
structure. 2 CO6
an array of Structure.
25 LLO 25.1 Write a C program using Implementation of a C programs based on
Concept of Enumerated Data type. Enumerated Data Types 2 CO6

26 LLO 26.1 Develop a micro project *Micro-project/SpringBoard certification for PIC.


using concepts learned from C (Refer point 11 for micro project list) 4 ALL
programming.
*Write algorithm and draw flowchart for given problem statement in each practical .
* SpringBoard certification for PIC Example:Learn and Master C Programming For Absolute Beginners!
Free Certification : 14hrs 50 m:
Link:https://infyspringboard.onwingspan.com/web/en/app/toc/lex_auth_0130944245909913602228_shared/overview

Note : Out of above suggestive LLOs -


'*' Marked Practicals (LLOs) Are mandatory.
Minimum 80% of the above list of lab experiments are to be performed.
Judicial mix of LLOs are to be performed to achieve desired outcomes.

VI. SUGGESTED MICRO PROJECT/ASSIGNMENT/ACTIVITIES FOR SPECIFIC LEARNING/SKILLS


DEVELOPMENT (SELF-LEARNING)

Micro project
The micro project has to be Industry Application Based, Internet-based, Workshop-based, Laboratory-based or
Field-based as suggested by Teacher.
1. Prepare a simple calculator to perform mathematical operations. Accept values and operations to be
performed from the user. Allow only numeric values and otherwise show appropriate messages to users.
2. Prepare menu driven program for Bank management system.The functionality of the Bank Management
System Application is mentioned below:Transfer Money to the Account,Creation of Account,Check Amount,
Login Functionality.
3.Develop food menu cards for restaurant. Display food items. Accept food menu, quantity and generate bill for
the same.
4. Develop a menu-driven program to perform Number System ConversionThe functionality of the Number
System Conversion is mentioned below: Decimal to Binary, Binary to Decimal, Decimal to Octal, Octal to,
Decimal,Hexadecimal to Binary,Binary to Hexadecimal.

GOVT. POLYTECHNIC, PUNE. Page 6


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204
5.Develop a menu-driven program to performQuiz Game:The Functionality of the Quiz Game is mentioned
below: Insert questions,Check answer,Get Score.
6. Calendar:Create an application to check date, day, etc using an application that can be created with C using
basic knowledge like arithmetic operations, strings, etc. The Functionality of the Calendar are mentioned
below: Find Out the Day, Print all the days of the month, Add Note.

VII.
VIII. LABORATORY EQUIPMENT/INSTRUMENTS/TOOLS/SOFTWARE REQUIRED
Relevant LLO
Sr. Equipment Name with Broad Specifications Number
No

1 a) Computer System with all necessary Peripherals and Internet connectivity.


b) Any Office Software ALL
c) Any Browser (Any General Purpose Computer available in the Institute )
d) C language IDE- Turbo/Borland / Dev C etc

IX. SUGGESTED FOR WEIGHTAGE TO LEARNING EFFORTS & ASSESSMENT PURPOSE

(Specification Table)

Sr. Un Unit Title Aligned Learning R-Level U-Level A-Level Total


No it COs Hours Marks
1 I INTRODUCTION TO
COMPUTER CO1 08 4 2 4 10
PROGRAMMING
2 II CONTROL
CO2 08 2 2 6 10
STRUCTURES
3 III ARRAYS AND
CO3 12 4 4 6 14
STRINGS
4 IV FUNCTIONS IN C CO4 12 4 4 6 14
5 V POINTERS IN C CO5 10 2 4 4 10
6 VI STRUCTURES CO6 10 2 4 6 12
Grand Total 60 18 20 32 70

X. ASSESSMENT METHODOLOGIES/TOOLS

Formative assessment Summative Assessment


(Assessment for Learning) (Assessment of Learning)

Continuous assessment based on process and End semester examination ,Lab Performance, viva
product related performance indicators Each voce
practical will be assessed considering, Lab
performance, Assignment, Self-learning and
Seminar/Presentation

GOVT. POLYTECHNIC, PUNE. Page 7


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204

XI. SUGGESTED COS- POS MATRIX FORM


Programme Outcomes(POs) Programme
Specific
Outcomes
*(PSOs)
Course PO-1 PO-2 PO-3 PO-4 PO-5 PO-6 PO-7 PSO-1 PSO-2
Outcom Basic and Proble Design/ Enginee Engineering Project Life
es Discipline m Developm ring Practices for Manageme Long
(COs) -Specific Analys ent of Tools Society, nt Learning
Knowledg is Solutions Sustainability
e and
Environment
CO1 2 2 2 1 - - 2 - 3
CO2 2 2 3 2 - 1 2 - 3
CO3 2 3 2 3 1 1 2 - 3
CO4 3 3 2 3 1 1 3 - 3
CO5 3 3 3 3 1 1 3 - 3
CO6 3 3 2 3 1 2 3 - 3
Legends:- High:03, Medium:02, Low:01, No Mapping: -
*PSOs are to be formulated at the institute level

XII. SUGGESTED LEARNING MATERIALS/BOOKS


Sr. Author Title Publisher
No
1 E. Balaguruswamy Programming in ANSI ‘C’ Mcgraw Hill Publications ISBN
0070534772
2 Yashwant Kanetkar Let us ‘C’ BPB Publication ISBN 9788183331630
3 David Griffiths, Dawn Griffiths Head First C O'Reilly Media, Inc. ISBN:
9781449345013

XIII. LEARNING WEBSITES & PORTALS


Sr.No Link/Portal Description

1 https://nptel.ac.in/courses/106104128 C Programming
Control structures, flow control
2 https://jsommers.github.io/cbook/control.html
statements in C
3 https://www.learn-c.org/en/Functions Functions
https://www.simplilearn.com/tutorials/c-tutorial/pointers-in-c
4 Pointers
5 https://www.w3schools.com/c/ C Programming
https://www.javatpoint.com/c-programming-language- tutorial
6 C Programming tutorial
7 https://www.programiz.com/c-programming C Programming
https://www.programiz.com/c-programming/online- compiler/
8 Online C compiler

GOVT. POLYTECHNIC, PUNE. Page 8


COURSE TITLE : PROGRAMMING IN C COURSE CODE : CM21204

Name & Signature:

Mrs. Khushboo S. Sathawane

Mrs. Snehal S. Ingavale Mrs. K. S. Gaikwad

Lecturer in Computer Engineering. Lecturer in Information Technology.

(Course Experts)
Name & Signature: Name & Signature:

Smt . J. R. Hange Shri. S.B. Kulkarni


(Programme Head) (CDC In-charge)

GOVT. POLYTECHNIC, PUNE. Page 9

You might also like