CMR COLLEGE OF ENGINEERING & TECHNOLOGY
(AUTONOMOUS)
(Regulations: CMRCET-R25)
Programme: [Link] Branches: ALL
Course Name: Programming for Problem Solving Course Code: A505201
PPS LAB RECORD EXPERIMENTS LIST
SNO. EXPERIMENT
Write a simple program that prints the results of all the operators available in C,
1
Read required operand values from standard input.
Write a C prograrm to swap the contents of any two operands using suitable bitwise
2 operators.
Write a C program to compute s = ut + 1/2 at 2 [Read u, t & a values from keyboard].
3
4 Write a C program for the simple and compound interest
5 Write a C prograrn for finding the max and min from the given three numbers.
6 Write a C program to find the Roots of a Quadratic equation.
Write a C program, which takes two integer operands and one operator from the
user, performs the operation and then prints the result. (Consider the operators +,-
7 ,*,/, % and use Switch Statement).
Write a C program that prints a multiplication table for a given number and the
number of rows in the table.
8 For example, for a number 5 and rows:3. the output should be:
5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 …....
9 Write a C program to print all the prime numbers between the given limits
Write a C program to find the sum of individual digits of a positive integer and test
10 given number is palindrome or not.
Write a C program to construct a pyramid of numbers as follows:
1 a
11 1 2 b b
l 2 3 c c c
A Fibonacci sequence is defined as follows: the first and second terms in the
12 sequence are 0 and 1 Subsequent terms are found by adding the preceding two
terms in the sequence. Write a C program to generate the first n terms of the
sequence.
13 Write a C prograrm to find the sum of any two integers. using functions.
Write C program that uses both recursive and non-recursive functions:
14
a. To find the factorial of a given integer.
b. To find the GCD (greatest comrnon divisor) of two given integers
15
Write a C program to perform different arithmetic operations using pointers.
Write a C program to swap two numbers using call-by-value and call-by-reference
16 concept
17 Write a C program to find the minimum, maximum and average of an array of
integers.
18 Write a C program that uses, funciions to perform the Addition of Two Matrices
Write C programs without using String-Handling functions:
19 a. to find the length of a given string
b. to append one string at the end of another string
Write a C program to determine if the given string is a palindrome or not (Spelled
same in both directions with or without a meaning like madam, civic, noon, etc.)
20 without using string handling functions.
21 Write a C program that displays the position of a character ch in the string S or -1 if
S doesn't contain ch.
22 Write a C program count the no. of lines, words and characters in a given text
Write a C program to read and display a student structure with the following data
23 items: student_name, student_rno, student_percentage.
24 Write a C program to copy the structure elerments from one structure variable to
another
25 Write a C program to declare a pointer to structure and display the contents of the
structure
26 Write a C prograrn to write data to text file and read it.
Write a C program which copies one file to another, replacing all lowercase
27
characters with their uppercase equivalents and read the result file.
Write a C progran that uses non-recursive function to search for a Key value in a
28 given list of integers using linear search method
29 Write a C program that uses recursive and non-recnrsive functions to search for a
key value in a given sorted list of integers using Binary search method
30 Write a C program that implements the Bubble sort method to sort a given list of
integers in ascending order.