Syllabus

Course Code: ES-107L    Course Name: Programming for Problem Solving Lab

MODULE NO / UNIT COURSE SYLLABUS CONTENTS OF MODULE NOTES
1 LIST OF PROGRAMS
1. Write a program to find the sum of individual digits of a positive integer.

2. Write a program to generate the first n terms of the Fibonacci sequence.

3. Write a program to generate all the prime numbers between 1 and n, where n is the input value given by the user.

4. Write a program to find the roots of a quadratic equation.

5. Write a function to generate Pascal’s triangle.

6. Write a program for addition of Two Matrices

7. Write a program for calculating transpose of a matrix.

8. Write a program for Matrix multiplication by checking compatibility

9. Write programs to find the factorial of a given integer by using both recursive and non-recursive functions.

10. Write a function that uses functions to perform the count of lines, words and characters in a given text.

11. Write a program to explores the use of structures, union and other user defined variables

12. Write a program to print the element of array using pointers

13. Write a program to implement call by reference

14. Write a program to print the elements of a structure using pointers

15. Write a program to read a string and write it in reverse order

16. Write a program to concatenate two strings

17. Write a program to check that the input string is a palindrome or not.

18. Write a program which copies one file to another.

19. Write a program to reverse the first n characters in a file.

Note: At least 10 programs are to be performed & executed from the above list.
Copyright © 2020 Kurukshetra University, Kurukshetra. All Rights Reserved.