B.
E, I Semester, Physics Department
Semester: I
C Programming Lab
Course Code: MVJ POPL107 CIE Marks: 50
L: T : P:S 0:0:2:0 SEE Marks: 50
Credits: 1 Total: 100
Hours: 24 Hours Practical SEE Duration: 3
Course Objectives:
This course will give ability to :
• Understand and apply basic programming constructs in C, including variables, data types,
operators, and control structures, to solve real - world problems.
• Apply mathematical and algorithmic techniques to solve problems of engineering applications.
• Demonstrate proficiency in debugging, testing, and validating C programs to ensure correctness,
efficiency, and robustness across various application domains.
Guidelines/ Specific Requirements, if any :
Implement all the programs in “C” Programming Language and Windows/Linux OS.
Sl.
Experiments List
No.
1. A robot needs to find how far it must travel between two points on a 2D plane. Develop a C
program to calculate the straight - line distance between the given coordinates.
2. Develop a C program that takes a student's marks as input and displays their grade based on the
following criteria: 90 and above: Grade A 75 to 89: Grade B 60 to 74: Grade C 50 to 59: Grade D
Below 50: Grade F Choose a suitable control structure to impleme nt this logic efficiently
3. Develop a C program that takes a unique identification input like PAN Number, AADHAR_Number,
APAAR_Id, Driving License, Passport and checks it against a set of stored KYC records. Based on
the input, display whether the individual is verified or not. Use a n appropriate control structure to
handle multiple possible ID matches. Assume all Unique identification are of integer type.
4. A math app needs to determine the type of roots for a quadratic equation based on user input.
Develop a C program to calculate and display the roots based on the given coefficients.
5. A sensor in a robotic arm needs to calculate the angle of rotation in real - time, but the hardware
doesn't support built - in trigonometric functions. Develop a C program to approximate the value
of sin(x) using a series expansion method for improved performa nce.
6. Develop a C program that accepts a course description string and a keyword from the user. Search
whether the keyword exists within the course description using appropriate string functions. If
found, display: "Keyword '' found in the course description." O therwise, display: "Keyword '' not
found in the course description."
7. Develop a C program that takes marks for three subjects as input. Use a function to check if the
student has passed (minimum 40 marks in each subject). Display the average and whether the
student passed or failed
8. In an ATM system, two account balances need to be swapped temporarily for validation. Develop
a C program that accepts two balances and uses a function with pointers to swap them. Display
the balances before and after swapping.
9. A college library has a digital bookshelf system where each book is assigned a unique Book ID.
The bookshelf is organized in ascending order of Book IDs. Develop a C Program to quickly find
whether a book with a specific Book ID is available in the shelf.
10. A sports teacher has recorded the scores of students in a 100 - meter race. To prepare the result
sheet, the teacher wants the scores arranged in descending order (from highest to lowest).
Develop a C program to sort the scores.
11 A currency exchange booth allows users to convert between two currencies. Before confirming
the exchange, the system simulates a swap of the values to preview the result without changing
the original data. In other cases, it updates the actual values. Deve lop a C program that
implements both behaviours using Call by Value and Call by reference
Course Outcomes:
At the end of the course, the student will be able to:
CO1: Apply fundamental programming concepts in C to solve real - world problems involving
mathematical computations, data validation, and decision - making logic.
CO2: Utilize modular programming techniques including user - defined functions and pointer
operations to enhance code reusability and maintainability in systems like ATM validation
and currency exchange simulations.
CO 3: Integrate algorithmic thinking and problem - solving skills to develop optimized solutions
for tasks involving data sorting, searching, and conditional logic.
CO4: Develop proficiency in debugging and testing C programs to ensure accurate output and efficient
performance across diverse application scenarios.
Evaluation Method
Continuous Internal Evaluation (CIE):
• Weekly Evaluation for 30 Marks: Weekly evaluation should be conducted for every experiment.
Marks of each evaluation includes Lab Attendance (5 Marks) + Experiment conduction along with
Record / Observation (15 Marks) + Viva (10 Marks) for each experiment. All weekly marks are added
and scaled to 30 marks (A).
• Two CIE tests for 20 Marks each should be conducted and averaged to 20 Marks (B ).
Final CIE Marks of practical should be calculated as A+B for 50 marks.
Semester End Examination (SEE):
The SEE of practical is evaluated for 50 marks, distributed as follows:
• Experiment Conduction with Results: 40 marks
• Viva Voce: 10 marks
• Total 50 marks
The Final mark for the course is the sum of CIE and SEE Marks.
CO - PO Mapping
CO/PO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11
CO1 3 3 2 0 2
CO2 3 2 3 0 3
CO3 3 3 3 0 3
CO4 3 2 2 3 3
High - 3: Medium - 2: Low - 1