PRACTICAL FILE PROGRAM LIST
COMPUTER SCIENCE CLASS-XII
1. WAP to read a number n and print n2, n3 and n4.
2. WAP to print the table of a given number in the format 2 X 1 = 2.
3. WAP to input a single digit n and print a 3-digit number created as <n(n+1)(n+2)>.
(Hint- if n=7 then it should display 789 in output)
4. WAP to make a menu driven list for perimeter and area of different shapes.
5. WAP to read three numbers and print them in ascending order.
6. WAP to print factorial of a given number.
7. WAP to check that whether a given number is prime or not.
8. WAP to print Fibonacci series of first 20 elements.
9. WAP to print first 20 Mersenne numbers.
(Hint: Mersenne numbers are 2n-1)
10. WAP to print the following patterns:
(a)1 (b) 4321
13 432
135 43
1357 4
11. WAP to print the following series:
(Hint: Input the values of x and n)
(a) 1+x+x2+x3+x4…….xn
(b) 1-x+x2-x3+x4…….xn
12. WAP to check that whether a given string is palindrome or not.
13. WAP to reverse words in a given String in Python
14. WAP to count number of vowels in given string
15. WAP to swap commas and dots in a given string