PRACTICAL FILE
SESSION: 2024-25
Programming In ‘C’ Lab
(ES 154)
I Year, Sem 2
Submitted to: Submitted by:
Name: Ms Rachana Sharma Name:
Designation: Assistant Professor Enrollment No.
Sec:
INDEX
[Link]. PROGRAM NAME DATE OF DATE OF SIGN.
EXPERIMENT SUBMISSION
1 (a) Write a program to find divisor or factorial of a given
number.
(b) Write a program to find sum of a geometric series
2 (a) Write a recursive program for tower of Hanoi problem.
(b) Write a recursive program to print the first
m Fibonacci number
3 Write a menu driven program for matrices to do the
following operation depending on whether the operation
requires one or two matrices
a Addition of two matrices
b. Subtraction of two matrices
c. Finding upper and lower triangular matrices
d. Transpose of a matrix
e. Product of two matrices.
4 An array of record contains information of
managers and workers of a company. Print all the
data of managers and workers in separate files.
5 (a)Write a program to perform the following operators
on Strings without using String functions
a). To find the Length of String.b). To concatenate two
string. c)To find Reverse of a string.d) To copy one string
to another string.
(b)Write a program to copy one file to other, use
command line arguments.
6 Write a Program to store records of a student in student
file. The data must be stored using Binary [Link] the
record stored in “[Link]” file in Binary [Link] the
record stored in Binary [Link] a record in the
Student file.
7 Write a programmed to count the no of Lowercase,
Uppercase numbers and special Characters presents in
the contents of text File.
8 To study Perception/ ANN model and Implement
a program usin Python that uses an Artificial
Neural Network (ANN) or Perceptron model to
simulate the behavior of an XOR gate.
9 To study Linear regression ,Error Calculation,
MSE and Write a program to implement Linear
Regression on a given data set using Python
10 To study Naive Bayes and implement it on a
given data set using Python
EXPERIMENT 3
Write a program to find divisor or factorial of a given number.
Code:
EXPERIMENT 1(b)
Write a program to find sum of a geometric series.
Code:Screenshot
Output Screen shot