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

Pps Lab External Programs for Students - Copy

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Pps Lab External Programs for Students - Copy

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PPS LAB EXTERNAL EXAM PROGRAMS LIST

1. Write a C program that prints the results of Relational, Logical and Bitwise
operators available in C. Read required operand values from standard input.
2. Write a C program to compute simple and compound interest.
3. 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).
4. Write a C program to generate all the prime numbers between 1 and n, where n
is a value supplied by the user.
5. Write a C program to perform Addition of Two Matrices using functions.
6. Write a C Program that declares Class awarded for a given percentage of marks,
where percentage >= 70% then print “First Class with Distinction”, otherwise,
nothing to print. (Read percentage from standard input.)
7. Write a C Program that prints a multiplication table for a given number and the
number of rows in the table. (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…
8. Write a C program to perform Transpose of a matrix using functions.
9. Write C program that use recursive function to find the factorial of a given integer.
10. Write a function to compute mean, variance and Standard Deviation of n
elements in a single dimension array.
11. Write a program that asks the user to enter the total time elapsed, in seconds,
since an event, and converts the time to hours, minutes and seconds. The time
should be displayed as hours: minutes: seconds.
12. Write a C program to find the sum of individual digits of a positive integer and test
whether the given number is palindrome or not.
13. Write a recursive program to find the GCD (greatest common divisor) of two given
integers.
14. Write a C program to insert a sub-string into a given main string from a given
position.
15. Write a C program to delete n Characters from a given position in a given string.
16. Write a C program to find the roots of a Quadratic equation.
17. Armstrong numbers are numbers that are equal to the sum of their digits raised
to power of the number of digits in them. The number 153, for example, equals
13 + 53 + 33 . Thus it is an Armstrong number. Write a program to display all three-
digit Armstrong numbers
18. 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, abcba,
etc.).
19. Write a C program to implement bubble sort technique?
20. Write a C program to construct the following pyramid:
1
2 2
3 3 3
21. Write a program that reads three nonzero integers and determines and prints
whether they could be the sides of a right triangle.
22. Write a C program to implemet Selection sort technique?
23. Write a C program to copy the contents of one file to another file and display it?
24. Write a C program that displays the position of a character ch in the string S or –
1 if S doesn’t contain ch.
25. Write a C program to find the minimum, maximum and average in an array of
integers.
26. Write a C program to count the lines, words and characters in a given text .
27. Write a C program to read and display the contents of last 20 characters of a file?
28. Write a C program that estimates the value of the mathematical constant ex by
using the formula:
ex = 1 + x/1! + x2/2! + x3/3! + ………………
29. Write a C program to compute xn.
30. Write a C program to read and display any five employees EMPID, EMPNAME
& SALARY using structures.
ADDITIONAL PROGRAMS
1. Write a C program that uses function to perform Multiplication of Two Matrices
2. Write a C program to append the contents of two files store it in third file and
display it using Comman Line Arguments?
3. Write a C program to copy the first n-characters of a string into another and display
it (With out using string handling functions)?
4. Write a C program to implement Insertion sort technique?
5. Write a C program to read n-integers into a file, and find & display the sum of Even
and Odd numbers separately?
6. Write a C program that sorts a given array of names?
7. Write a C program to concatenate a string at the end of another string and display
it (With out using string handling functions)?
8. Write a C program to find the sum of first n-terms of the following series:
Sin(x) = x – x3/3! + x5/5! – x7/7! + ………………
9. Write a C program to find the sum of first n-terms of the following series:
cos(x) = 1 – x2/2! + x4/4! – x6/6! + ………………
10. Write a C program to find and display the sum of n-integers using malloc() & free()
functions.
11. Write a C program to read and display the contents of a file, print the first n-
characters in reverse order.
12. Write a C program to reverse the given string with out using string handling
functions?
13. Write a C program to find the sum of two complex numbers by passing structure
to a function? (Hint: Read real & Imaginary parts)

You might also like