VELALAR COLLEGE OF ENGINEERING AND TECHNOLOGY, ERODE-638012
(An Autonomous Institution Affiliated to Anna University, Chennai)
Department of Information Technology
Course Outcome Mapping with Programme Outcome using Competency, Performance Indicator
Course Code & Title : 22ITL21- C Programming Laboratory
Semester : II
Faculty Name & Designation : Ms.S.Chitra, AP/IT
S.No Expt. ILO Competenc Performance Assessment Knowledg PO
No. y Indicator e Level Mappe
d
LIST OF EXPERIMENTS
1. If the three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is valid or
not. The triangle is valid if the sum of two sides is greater than the largest of the three sides.
2. A university has the following rules for a student to qualify for a degree with A as the main subject and B as the
subsidiary subject:
(a) He should get 55 percent or more in A and 45 percent or more in B.
(b) If he gets than 55 percent in A he should get 55 percent or more in B. However, he should get at least 45 percent in
A.
(c) If he gets less than 45 percent in B and 65 percent or more in A he is allowed to reappear in an examination in B to
qualify.
(d) In all other cases he is declared to have failed.
Write a program to receive marks in A and B and Output whether the student has passed, failed or is allowed to reappear
in B.
3. Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of them are
positive, how many are negative, how many are even and how many odd.
4. Write a program that extracts part of the given string from the specified position. For example, if the sting is "Working
with strings is fun", then if from position 4, 4 characters are to be extracted then the program should return string as
"king". Moreover, if the position from where the string is to be extracted is given and the number of characters to be
extracted is 0 then the program should extract entire string from the specified position.
5. A positive integer is entered through the keyboard, write a program to obtain the prime factors of the number. Modify
the function suitably to obtain the prime factors recursively.
6. Write a function to compute the distance between two points and use it to develop another function that will compute the
area of the triangle whose vertices are A(x1, y1), B(x2, y2), and C(x3, y3). Use these functions to develop a function
which returns a value 1 if the point (x, y) lines inside the triangle ABC, otherwise a value 0.
7. An animal could be a canine (dog, wolf, fox, etc.), a feline (cat, lynx, jaguar, etc.), a cetacean (whale, narwhal, etc.) or a
marsupial (koala, wombat, etc.). The information whether a particular animal is canine, feline, cetacean, or marsupial is
stored in bit number 0, 1, 2 and 3 respectively of a integer variable called type. Bit number 4 of the variable type stores
the information about whether the animal is Carnivore or Herbivore. For the following animal, complete the program to
determine whether the animal is a herbivore or a carnivore. Also determine whether the animal is a canine, feline,
cetacean or a marsupial.
8. There is a structure called employee that holds information like employee code, name, date of joining. Write a program
to create an array of the structure and enter some data into it. Then ask the user to enter current date. Display the names
of those employees whose tenure is 3 or more than 3 years according to the given current date.
9. Given a list of names of students in a class, write a program to store the names in a file on disk. Make a provision
to display the nth name in the list (n is data to be read) and to display all names starting with S.
10. Assume that a Master file contains two fields, Roll no. and name of the student. At the end of the year, a set of
students join the class and another set leaves. A Transaction file contains the roll numbers and an appropriate code to
add or delete a student. Write a program to create another file that contains the updated list of names and roll numbers.
Assume that the Master file and the Transaction file are arranged in ascending order by roll numbers. The updated file
should also be in ascending order by roll numbers.
C 1.7.1
progra 1,2 1.7 2.5.1
ms 2.5 2.5.2 PO1
2.8 2.5.3 PO2
that
3.5 2.8.1 PO3
involv 4.5 3.5.1 Observation, PO4
e ILO.1. Develop a C Program for a given 4.6 3.5.2 Viva / Model Lab PO5
basic problem using Decision making 5.4 4.5.1 / Rubrics K3 PO6
data statements. 6.4 4.6.4 PO9
types, 6.5 5.4.2 PO11
9.4 6.4.1
loopin
11.4 6.5.1
g and 9.4.2
decisi 11.4.1
on
statem
ents.
1.1
2. C
p
r
o
g
r
a
m
s
u
s
i
n
g
o
n
e
d
i
m
e
n
s
i
o
n
a
l
a
n
d
t
w
o
d
i
m
e
n
s
i
o
n
a
l
a
r
r
a
y
s
3. .
4. C
p
r
o
g
r
a
m
s
f
o
r
S
t
r
i
n
g
m
a
n
i
p
u
l
a
t
i
o
n
o
p
e
r
a
t
i
o
n
s
5. .
6. C
p
r
o
g
r
a
m
s
u
s
i
n
g
F
u
n
c
t
i
o
n
s
Pa
Li
M
Re
7. C
p
r
o
g
r
a
m
s
u
s
i
n
g
s
t
r
u
c
t
u
r
e
s
a
n
d
u
n
i
o
n
8. .
9. C
p
r
o
g
r
a
m
s
u
s
i
n
g
P
o
i
n
t
e
r
s
Po
Ar
7. C
p
r
o
g
r
a
m
s
f
o
r
b
a
s
i
c
f
i
l
e
o
p
e
r
a
t
i
o
n
s
t
o
c
o
p
y
t
h
e
c
o
n
t
e
n
t
f
r
o
m
o
n
e
f
i
l
e
t
o
a
n
o
t
h
e
r
u
s
i
n
g
f
s
c
a
n
f
a
n
d
f
p
r
i
n
t
f
f
u
n
c
t
i
o
n
s
8. .
9. C
p
r
o
g
r
a
m
s
u
s
i
n
g
d
y
n
a
m
i
c
m
e
m
o
r
y
a
l
l
o
c
a
t
i
o
n
10. .
11. D
e
v
e
l
o
p
i
n
g
a
p
p
l
i
c
a
t
i
o
n
s
u
s
i
n
g
C
1.6 1.6.1
1.7 1.7.1
2.5 2.5.3 Observation, PO1
3.5 3.5.1 Viva / Model Lab PO2
3 ILO.2. Develop a C program for the table 3.8 3.8.1 / Rubrics K3 PO3
2 using an array. 4.6 4.6.1 PO4
5.4 4.6.3 PO5
6.4 5.4.1 PO6
6.5 6.4.1 PO9
9.5 6.5.1 PO11
11.5 9.5.1
11.5.1
3
1.6 1.6.1
1.7 1.7.1
2.5 2.5.1
3.5 2.5.2 PO1
4.6 2.5.3 PO2
5.4 3.5.1 Observation, PO3
ILO.3. Develop a C program to perform 6.4 4.6.1 Viva / Model Lab K3 PO4
various string manipulations operations. 6.6 4.6.2 / Rubrics PO5
9.5 5.4.2 PO6
4
11.4 6.4.1 PO9
6.6.2 PO11
9.5.1
11.4.1
1.2 1.2.1
1.6 1.2.2
2.5 1.6.1 PO1
3.5 2.5.1 PO2
4.4 2.5.2 PO3
ILO.4. Develop a C program to 5.4 2.5.3 Observation, PO4
5,6 understand or demonstrate using user 6.4 3.5.1 Viva / Model Lab K3 PO5
4
defined functions and recursion. 6.6 4.4.1 / Rubrics PO6
9.5 4.4.2 PO9
11.5 5.4.2 PO11
6.4.1
6.6.1
9.5.1
11.5.2
5 1.6 1.6.1 PO1
1.7 1.7.1 PO2
7,8 2.5 2.5.1 PO3
ILO.5. Develop a C program for the given 3.5 2.5.2 Observation, PO4
problem statement using structures and 4.6 2.5.3 Viva / Model Lab K3 PO5
union. 5.4 3.5.1 / Rubrics PO6
6.4 4.6.1 PO9
6.6 4.6.2 PO11
9.5 5.4.2
11.4 6.4.1
6.6.2
9.5.1
11.4.1
1.7 1.7.1 PO1
2.5 2.5.3 PO2
3.5 3.5.1 PO3
ILO.6. Develop a C programs to create, 3.8 3.8.1 PO4
store and process the given data using 4.6 4.6.1 Observation, PO5
files. 5.4 4.6.3 Viva / Model Lab K3 PO6
6 9,10
6.4 5.4.1 / Rubrics PO9
6.5 6.4.1 PO11
9.5 6.5.1
11.5 9.5.1
11.5.1
11.5.2
COURSE OUTCOMES - 22ITL21 – C PROGRAMMING LAB
After the completion of this course, students will be able to
CO 1 Develop and test the C program to solve a given problem statement using suitable data types, decision making
and control statements.
CO 2 Write the C program to process the given list of data using the concepts of arrays and strings.
CO 3 Develop and test the C program for the given problem statement using functions and recursion.
CO 4 Apply the concepts of structure and union to solve a given problem statement in C.
CO 5 Construct the C program to store and process the given data using files.
Course PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PSO 1 PSO 2
PO1
outcome
CO 1 2 3 3 3 2 1 1 - 1 - 2 - -
CO 2 2 3 3 3 2 1 1 - 1 - 2 - -
CO 3 2 3 3 3 2 1 1 - 1 - 2 - -
CO 4 2 3 3 3 2 1 1 - 1 - 2 - -
CO 5 2 3 3 3 2 1 1 - 1 - 2 - -
Legend
1: Slight (Low) 2: Moderate (Medium) 3: Substantial (High) “-” No correlation
Faculty Module Coordinator Programme Coordinator HoD/IT