MOOGAMBIGAI CHARITABLE AND EDUCATIONAL TRUST
Rajarajeswari College of Engineering
(An Autonomous Institution under Visvesvaraya Technological University, Belagavi)
Department of CSE(IC) & AIML
SEMESTER-I
C PROGRAMMING LAB
Category: PSC
Course Code : B25CPL107 CIE : 50 Marks
Teaching Hours L : T : P : 0:0:2 SEE : 50 Marks
Total Hours : 15(P) Total : 100 Marks
Credits : 1 SEE Duration : 2Hrs
Course Objectives
1. Able to write programs in C using basic constructs.
2. Apply user-defined data structures like arrays, structures in implementing solutions to problems.
3. To develop applications by using Strings and Structures.
Part – A
Note: Students must write the algorithm & flowchart for PART-A questions in the Record book
1. To read radius value from the keyboard and calculate the area of circle and print the result in both floating
and exponential notation.
2. Programs using decision-making constructs
a) To find if a number is negative, positive or zero.
b) To check if entered alphabet is vowel or a consonant.
4. Write a C Program to display the following by reading the number of rows as input
1
121
12321
1234321
………………………… nth row
5. Write a program in C to get the largest element of an array using function.
6. Display all prime numbers between two intervals using functions.
7. Write a program to Sort the given set of N numbers using Bubble sort technique.
8. Find the frequency of a character in a string.
Part – B
1. 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.
2. Using 2D performs the Matrix multiplication and validates the rules of multiplication.
3. Railway reservation system with following
a) Booking
b) Availability checking
c) Cancellation
d) Prepare chart
4. 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." Otherwise, display: "Keyword '' not found in the course
description."
5. 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.
6. Implement structures to read, write and compute average- marks of the students, list the students scoring
above and below the average marks for a class of N students.
7. Write a C program to copy a text file to another, read both the input file name and target file name.
Course Outcomes: At the end of the course, the students will be able to
CO1 Illustrate the concepts on simple applications making use of basic constructs, arrays and strings.
MOOGAMBIGAI CHARITABLE AND EDUCATIONAL TRUST
Rajarajeswari College of Engineering
(An Autonomous Institution under Visvesvaraya Technological University, Belagavi)
Department of CSE(IC) & AIML
CO2 Apply the methods to involving functions, recursion, pointers, and structures.
CO3 Design applications using sequential and random access file processing.
Text Books
1. Hassan Afyouni, Behrouz A. Forouzan. “A Structured Programming Approach in C”, 4 th Edition, Cengage.
Reference Text Books
1. Schildt, Herbert. "C the complete reference", 4th Edition, Mc GrawHill.
2. Brian W. Kernighan and Dennis M. Ritchie, The „C‟ Programming Language, 2 nd edition, Prentice Hall of
India.
Web links and Video lectures (e-Resources)
Introduction to Programming in C [[Link]
C for Everyone: Programming Fundamentals [[Link]
Computer Programming Virtual Lab [[Link]
C Programming: The ultimate way to learn the fundamentals of the C language [[Link]
programming-the-ultimate-way-to-learn-the-fundamentals-of-the-c [Link]]
C Programming: The Complete Reference [[Link]
language/attachment/28313/c-the-complete-reference-herbert-schildt-4th-edition-pdf/preview]
ASSESSMENT STRUCTURE FOR LABORATORY:
The assessment for each course is equally divided between Continuous Internal Evaluation (CIE) and the
Semester End Examination (SEE), with each component carrying 50% weightage (i.e., 50 marks each).
The CIE marks awarded shall be based on the continuous evaluation of the laboratory report using a defined
set of rubrics. Each experiment report can be evaluated for 10 marks.
The laboratory test 1 (duration 03 hours) at the end of the Part-A experiments shall be conducted for 50 marks
and scaled down to 15 marks.
The laboratory test 2 (duration 03 hours) at the end of the Part-B experiments shall be conducted for 50 marks
and scaled down to 25 marks.
For both CIE and SEE, the student is required to conduct one experiment each from both Part A and Part B.
To qualify and become eligible to appear for SEE, in the CIE component, a student must secure a minimum of
40% of 50 marks, i.e., 20 marks.
In SEE component, Part A must be evaluating as 30% and Part B will be evaluate as 70%.
To pass the SEE component, a student must secure a minimum of 35% of 50 marks, i.e., 18 marks. A student is
deemed to have successfully completed the course if the combined total of CIE and SEE is at least 40 out of
100 marks.