PPS 1
PPS 1
Labs/PPS-I
List of Programs:
WEEK 1
WEEK 2
WEEK 3
a) Areas of Polygons
b) Calculation of Simple and Compound Interest
c) Swapping of Two numbers with and without temporary variable
WEEK 4
b) Write a program to print 3 student details S.No, Student name, SSC percent,
Inter percent, Address using backslash constants
c) Write a program to swap two variables without using third variable
WEEK 5
b) Write a program using increment operator (pre and post) and decrement
operator(pre and post )
b) Write a program to find largest among three numbers using conditional operator
WEEK 6
10. a) Write a program to accept two integers for a coordinate point and determine its
quadrant.
b) Write a program to accept three integers and print the largest among them.
WEEK 7
11. a) Write a program to accept the year ,find whether it is a leap year or not.
12. a) Write a program that declares Class awarded for a given percentage of marks,
where percentage of marks<40%=Failed,40% to <60%=second class,60% to
<70%=First Class,>=70%=Distinction. Read percentage from standard input.
b) Write a program to find the sum of individual digits of a given number where
number is a +ve integer.
WEEK 9
15. a) Write a program to generate all prime numbers between 1 and n, where ‘n’ is a
value supplied by user.
b) Write a program to print sum of all odd numbers between 1 and 50 using do while
statement.
1
*
0 1
* * 1 0 1
0 1 0 1
* * *
1 0 1 0 1
* * * *
b) Write a program to read two numbers x and n and compute the sum of this geometric
progression: 1+x+x^2+x^3+…….+ x^n.
WEEK 10
b) Write a program to find strong numbers between two given numbers using
functions
WEEK 11
19. a) Write a program to check whether the given number is armstrong or not using
functions
WEEK 12
b) Write a program to find the sum of elements of 3*3 matrix using functions.
WEEK 13
22. Write a program to accept rows and columns of two matrices and check whether
multiplication is possible or not, if possible accept two matrices and find
multiplication of two matrices using functions.
WEEK 14
23. Write a program to check whether the given string is palindrome or not
24. Write a program to find the length of a string and copy to another string variable.