C Programming Lab Syllabus-2021-22

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

C PROGRAMMING LABORATORY

Course Code: 21CS107/21CS207 Credits: 01


L: P: I: S: 0: 2:1:0 CIE Marks: 50
Exam Hours: 03 SEE Marks: 50

Course Objectives:
1. Analyze and design problem solving techniques using flowcharts and algorithms.
2. Develop programs using different data types in C.
3. Develop programs to solve real time problems.
4. Learn to test and debug a program.

Course Outcomes: After completion of the course, the graduates will be able to

CO1 Create programs using decision making statements for solving complex problem.
CO2 Implement programs to perform various operations using repetitive tasks
CO3 Analyze Programs to handle sorting and searching of data using arrays.
CO4 Apply and utilize library functions to solve complex computing problems.
CO5 Create programs using structures involving multiple data types.
CO6 Design efficient programs using pointers for data access.

Mapping of Course outcomes to Program outcomes:

PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 2 - - - 1 - - - - - - 1
CO2 3 3 - - - - - - - - - 1
CO3 3 3 - - 1 - - - - - - 1
CO4 3 3 - - - - - - - - - 1
CO5 2 3 - - - - - - - - - -
CO6 2 3 3 - - - - - - - - 1
LABORATORY WORK
Program
No
Course Content Hours COs
Design and develop a C program that accepts three coefficients (a, b, and c) of a
CO1
Quadratic equation (ax2 +bx+c=0) as input and compute all possible roots and 02
1. CO2
print the possible roots for a given set of coefficients. Also print the message in
case of zero valued coefficient/s.

An electricity board charges the following rates for the use of electricity: for the
first 200 units 80 paise per unit: for the next 100 units 90 paise per unit: beyond
300 units Rs. 1 per unit. All users are charged a minimum of Rs. 100 as meter CO1
2. charge.If the total amount is more than 400 then an additional surcharge of 15% 02 CO2
of total amount is charged.
Design and develop a program to read the name of the user, number of units
consumed and print out the charges.

Design and develop a C program to find the reverse of an integer number NUM CO1
and check whether it is PALINDROME or NOT with suitable messages. Ex: 02 CO2
3.
Num: 1234, Reverse: 4321, Not a Palindrome.
Design and develop a C program that reads N integer numbers and arrange them CO1
4. in ascending order using Bubble Sort. 02 CO2
CO3
Design and develop a C program that reads N integer numbers and search a key CO1
5. element using Binary searching Technique. 02 CO2
CO3
Design and develop a C program that reads two matrices A (m x n) and B (p x CO1
q) and Compute product of matrices A and B. Read matrix A and matrix B in 02 CO2
6.
row major order. Print both the input matrices and resultant CO3
Matrix appropriately.

Design and develop a C program to implement the following operations CO1


without using library functions. Display the results after every operation. CO2
7. a. Read STRING s1 =“Dayananda” 02 CO3
b. Read STRING s2 =“Sagar” CO4
c. Output the concatenated string STRING s3 =“DayanandaSagar”

Design and Develop a C function isprime (num) that accepts an integer argument CO1
and returns 1 if the argument is prime, 0 otherwise. Write a C program that CO2
8. invokes this function to generate prime numbers between the given range. 02 CO3
CO4
Design and Develop a C program to create a structure called Employee to CO1
maintain record of details using an array of structures with four fields 02 CO2
9.
(Emp_name, Emp_id, Emp_age and Emp_sal). Assume appropriate data type for CO3
each field. Print the Employee details in Tabular Format. CO5

Write a C program using pointers to compute the sum, mean and standard CO2
10. deviation of all elements stored in an array of n real numbers. 02 CO3
CO6
REFERENCE BOOKS FOR LABORATORY

1. Computer Programming Laboratory Manual, Dept. of CSE, DSCE.

2. Reema Thareja, “Computer Fundamentals and Programming in C”, Oxford Press, 2012.

ASSESSMENT PATTERN FOR LABORATORY:

CIE – Continuous Internal Evaluation Lab (50 Marks)

Bloom’s Category Performance Internal Test


(Day To Day)
Marks (Out of 50) 30 20
Remember 05 05
Understand 05 05
Apply 10 05
Analyze 10 05
Evaluate -- --
Create -- --

SEE – Semester End Examination Lab (50 Marks)

Bloom’s Category Lab


Marks(50)
Remember 05
Understand 05
Apply 20
Analyze 15
Evaluate 05
Create --

ASSESSMENT PATTERN SUMMARY


1. All laboratory experiments are to be included for practical examination.
2. Students are allowed to pick one experiment from the lot.
3. Strictly follow the instructions as printed on the cover page of answer script for breakup of
marks
4. Change of experiment is allowed only once and 10% Marks allotted to the procedure part to be made
zero.
CIE in Laboratory
Continuous evaluation Max Marks Total Marks
Lab conduction 15
Viva 05 30
Observation and Record 10
Final Lab CIE 50
Write up 05
Execution 10 20
Viva 05
Total CIE marks (Lab) = 50 Marks
Total SEE marks (Lab) = 50 Marks

You might also like