0% found this document useful (0 votes)
6 views

PPS Lab External(24-25)

The document contains a list of programming tasks in C, categorized into 13 sets. Each set includes multiple programming challenges such as implementing mathematical operations, sorting algorithms, file handling, and string manipulation. The tasks range from basic operations like printing results of operators to more complex problems like finding roots of quadratic equations and implementing sorting methods.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

PPS Lab External(24-25)

The document contains a list of programming tasks in C, categorized into 13 sets. Each set includes multiple programming challenges such as implementing mathematical operations, sorting algorithms, file handling, and string manipulation. The tasks range from basic operations like printing results of operators to more complex problems like finding roots of quadratic equations and implementing sorting methods.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Write any two programs from each set:

1. a)Write a simple program that prints the results of all the operators available in C
(including pre/ post increment , bitwise and/or/not , etc.). Read required operand values
from standard input.

b)Write a program for multiplication of two matrices.


c)Write a program to implement bubble sort.

2. a)Write a program to convert one data type to another data type using auto conversion.
b)Write a program to find the factorial using recursion.

c)Write a program to convert the file data from lower case to upper case.

3. a)Write a program for finding the max and min from the three numbers.
b)Write a Program to find GCD of given integers.

c)Write a C program to determine if the given string is a palindrome or not.

4. a)Write the program for the simple, compound interest.


b)Write a program for reading the elements using a pointer into an array and display the
values using the array.

c)Write a C program that uses functions to perform to insert a sub-string in to a given main
string from a given position.

5. a) Write a program that declares Class awarded for a given percentage of marks, where
mark <40%= Failed, 40% to <60% = Second class, 60% to <70%=First class, >= 70% =
Distinction. Read percentage from standard input.
b)Write a program for addition of two matrices

c)Write a C code to implement binary search method using function.

6. a)Write a program to print 5 table.


b)Write a program to print sum of array elements using pointer.
c)Write a C program that uses functions to perform the to delete n Characters from a given
position in a given string.

7. a)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 +,-,*, /, % and use
Switch Statement)
b)Write a Program to find Xn using recursion.

c)Write a c program to count lines ,words and characters in given string.

8. a)Write a program to check whether the given number is prime or not.


b)Write a program for display values reverse order from an array using pointer.

c)Write a C code to implement linear search method .

9. a)Write a C program to find the sum of individual digits of a positive integer.


b)Write a program to find the transpose of matrix

c)Write a program to construct a pyramid.

1
1 2
1 2 3

10. a)Fibonacci sequence is defined as follows: the first and second terms in the sequence
are 0 and1.Subsequent terms are found by adding the preceding two terms in the sequence.
b)Write a C program to merge two files into a third file (i.e., the contents of the first file
followed by those of the second are put in the third file)
c)Write a C program that implements the following sorting methods to sort a given list of
integers in ascending order using selection sort.

11. a)Write a C program to find the roots of a quadratic equation


b)Write a program to copy content of one file in to another file.
c)Write a program to display pyramid *
* *
* * *
12. a)Write a C program to find maximum and minimum element in the array.
b)Write a program to display the content of file.
c)Write a C program that implements the following sorting methods to sort a given list of
integers in ascending order using insertion sort.
13. a) A building has 10 floors with a floor height of 3 meters each. A ball is dropped from
the top of the building. Find the time taken by the ball to reach each floor. (Use the
formula s = ut+(1/2)at^2.
b)Write a program to find the factorial using while loop.

c) write a program to perform swap operation using call by value.

You might also like