My Document
My Document
SIGNATURE
SL.NO PROGRAMS PAGE DATE OF TEACHER
IN CHARGE
1. To count and display the total number of vowels
10. Copy the contents of the CSV file into another file using
different delimiter
11. Create a binary file to store member number and
member name
12. Create a menu driven program to write, read, update and
append data onto a binary file
SL.NO PROGRAM SIGNATURE
PAGE DATE OF
TEACHER
IN CHARGE
13. To implement stack as a list
14. To display unique vowels using
stack
15. To implement employee stack
CODE
OUTPUT
PROGRAM:2
AIM
To print Fibonacci series using function.
CODE
OUTPUT
PROGRAM:3
AIM
To check whether the given string is a palindrome or not using solutions.
CODE
OUTPUT
PROGRAM:4
AIM
Recursive function to calculate the factorial of a number.
CODE
OUTPUT
PROGRAM:5
AIM
Program to calculate the area of different shapes using function.
CODE
OUTPUT
PROGRAM:6
AIM
Calculate the sum of first “n” natural numbers using recursion.
CODE
OUTPUT
PROGRAM:7
AIM
Program to read a text file line by line and display each word separated by ‘#’.
CODE
OUTPUT
PROGRAM:8
AIM
Program to read a text file and count the number of occurrence of “is” and ”and” in
that file.
CODE
OUTPUT
PROGRAM:9
AIM
CODE
OUTPUT
PROGRAM:10
AIM
Program to copy the contents of a csv file into another file using different
delimiter.
CODE
OUTPUT
PROGRAM:11
AIM
Program to create a binary file to store member no and member name. Given a
member no display its associated name else display appropriate error message.
CODE
OUTPUT
PROGRAM:12
AIM
To create a menu driven program to write, read, update and append data on to a
binary file.
CODE
OUTPUT
PROGRAM: 13
AIM
OUTPUT
PROGRAM: 14
AIM
OUTPUT
PROGRAM: 15
AIM
CODE
OUTPUT
PROGRAM: 16
AIM
Program to perform the functions based upon the questions given below on the
table stock and dealer
QUESTIONS
Table Dealer:
Give SQL statements for the queries 1 to 4 and output for 5 and 6.
1. To display details of all the items in the stock in ascending order of stockdate.
2. To display details of those items in stock table whose dealer Code (Dcode) is
102 or quantity in Stock (Qty) is more than 100.
3. to insert a record in the stock table with the values :( 5010,’Pencil HB’, 102,
500, 10, ’2010-01-26’)
4. To display Dcode, DName from Dealer table and Item, Unit Price from stock
table of all the
Dealers (including the dealer details that have not sold any item)
5. SELECT count (distinct Dcode) FROM Stock;
6. SELECT Qty*from UnitPrice FROM stock WHERE Itemno= 5006;
OUTPUT
1)
2)
3)
4)
5)
6)
PROGRAM: 17
AIM
To perform the functions based upon the questions given below on the
EMPLOYEE and SALGRADE.
QUESTIONS
Table: SALGRADE
S02 or S03.
3. To display the content of the entire EMPLOYEEs table, whose DOJ is in
between
Roy’,’HEAD-IT’,’S02’,’2007-09-09’,’1983-04-21’).
OUTPUT
A.1)
A.2)
A.3)
A.4)
B.1)
B.2)
B.3)
PROGRAM: 18
AIM
CODE
OUTPUT
PROGRAM: 19
AIM
OUTPUT
PROGRAM: 20
AIM
AIM
OUTPUT