0% found this document useful (0 votes)
8 views1 page

PSP Programs

The document lists various programming tasks and exercises, including calculating sums, checking properties of numbers, and implementing sorting and searching algorithms. It also includes tasks related to file operations and data structures like arrays and dictionaries. Each task is associated with specific learning outcomes and cognitive levels.
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)
8 views1 page

PSP Programs

The document lists various programming tasks and exercises, including calculating sums, checking properties of numbers, and implementing sorting and searching algorithms. It also includes tasks related to file operations and data structures like arrays and dictionaries. Each task is associated with specific learning outcomes and cognitive levels.
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/ 1

1. Program to print the sum of first n natural numbers.

[CO2][BT3]
2. Program to print the roots of the quadratic equation. [CO2][BT3]
3. Program to check whether the given number is perfect or not. [CO2][BT3]
4. Program to print the Fibonacci series up to ‘n’. [CO2][BT3]
5. Program to read the 3 sides of a triangle, and print whether the triangle is equilateral,
isosceles, or scalene. [CO2][BT3]
6. Program to print the reverse of the given number. [CO2][BT3]
7. Program to Find if the year is a leap year or not. [CO2][BT3]
8. Print the following patterns using nested loops. [CO2][BT3]

9. Program to find the Factorial of a given number. [CO2][BT3]


10. Program to print the sum of digits of the given number. [CO2][BT3]
11. Given the following constraints calculate net salary of an employee.
Basic salary : Rs.12000
DA : 12% of Basic salary
HRA : Rs150
TA : Rs120
Others : Rs450
Tax cuts – a) PF :14% of Basic salary and b) IT: 15% of Basic salary
Net Salary = Basic Salary + DA + HRA + TA + Others – (PF + IT)
[CO2][BT3]
12. Program to check whether the given number is Armstrong or not. [CO2][BT3]
13. Write a function to find the largest of the three numbers. [CO5][BT3]
14. Write a function to find the Sum of the first n natural numbers[CO5][BT3]
15. Write a function to find a Factorial for n numbers.[CO5][BT3]
16. Write a function to find the nth Fibonacci number.[CO5][BT3]
17. Write a program to open and read, write into .csv file [CO6][BT3]
18. Write a program to count the words and characters of the given file. [CO2][BT3]
19. Write a program to extract the required string using the slice operator. [CO2][BT3]
20. Write a program to compute matrix Addition. [CO2][BT3]
21. Write a program to implement the selection sort technique. [CO2][BT3]
22. Write a program to implement the bubble sort technique. [CO2][BT3]
23. Write a program to implement the binary search technique. [CO2][BT3]
24. Write a program to implement the Linear search technique. [CO2][BT3]
25. Write a program to copy the contents of one file into another. [CO6][BT3]
26. Write a program to create a 2D Array using the list. [CO2][BT3]
27. Write a program to create a Dictionary and perform Operations on Dictionaries. [CO4][BT3]
28. Write a program to search for a string in a given string using linear search. [CO2][BT3]
29. Write a program to create a file and execute read, and write mode in it. [CO6][BT3]
30. Write a program to demonstrate file positions using seek () and tell () [CO6][BT3]

You might also like