0% found this document useful (0 votes)
12 views

Practical XII (1)

This document is a practical file for Computer Science submitted by Krishna Gauthami. V for the academic session 2024-25, detailing various programming tasks and projects. The tasks include creating dictionaries, text files, binary files, CSV files, stack implementations, and MySQL queries, along with specific functionalities for each task.

Uploaded by

gauravyadav20077
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Practical XII (1)

This document is a practical file for Computer Science submitted by Krishna Gauthami. V for the academic session 2024-25, detailing various programming tasks and projects. The tasks include creating dictionaries, text files, binary files, CSV files, stack implementations, and MySQL queries, along with specific functionalities for each task.

Uploaded by

gauravyadav20077
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

COMPUTER

SCIENCE
PRACTICAL FILE
Session 2024-25

Submitted by: Krishna Gauthami. V


Class: XII-A
Roll No.: 25
INDEX
SR NO TITLE OF PROGRAM DATE SIGN
REVISION TOUR
1 To create a dictionary to store names and phone
numbers of 5 friends by accepting inputs from user
and perform search by key and modification of
phone no of a friend.
2 To develop a quiz. Store any 10 questions and
answers. Randomly select questions and print a
score card for user.
FUNCTIONS
3 To Write a menu driven program to calculate
volumes and surface area of sphere and cuboid
.Program will contain different user defined
functions to calculate area and volumes
4 To write a menu driven program to calculate
simple interest and compound interest. Program
will give default values for rate of interest
TEXT FILE HANDLING
5 To create a text file and write some text into it.
Write a menu driven program to calculate i) no of
words in the file ii) To display longest line in the
file iii) To calculate no of lines starting with “The”.
Consider all case variants of “The”
6 To create a text file and write some text into it.
Write a menu driven program i) To calculate no of
digits in a file ii) To count no of times “me” or
“my” occurs in the file .(Consider all case variants
of
“me” or “my”)
BINARY FILE HANDLING
7 Write a menu driven program to do the following
1. To create a binary file and write records of
employee emp id ,emp name and salary.
2. . To search by emp name and display the record.
3. To change salary of a particular employee
4. To delete a record who has left the job
CSV FILE HANDLING
8 Write a menu driven program to do the following
1. To create a csv file and write records of students
records [adm no,name,percentage]
2. To search by name and display the record
3. To modify percentage of student.
4. To count no of records whose percentage is
above 90
STACK IMPLEMENTATION
9 Implement stack as per requirement given below
1. A List contains records as list elements
[ City,Country,distance from Delhi]
2. Write Push( lst) which takes the nested list
as argument and pushes a list object
containing name of city and country
,which are not in India distance is less than
3500 km from Delhi
3. Pop() To pop the objects from stack and
displays them , Also the function should
display appropriate message when stack is
empty

10 Implement stack as per requirement given below


Create a dictionary of kitchen items –{Item:price}
1. A function to push the items on stack
whose price is less than 100.Also
display average price of elements
pushed onto stack
2 A function to pop the objects from stack
and displays them , Also the function
should display appropriate message when
stack is empty

MYSQL
11 Simple queries
12 Queries based on aggregate functions
13 Queries based on joins
14 Queries based on group by clause
Python and mysql connectivity
15 Select command
17 Insert command
18 Update and delete command
REVISION TOUR
##
##
FUNCTIONS
##
##
TEXT FILE
##
##
BINARY FILE
##
CSV FILE
##
STACK
##
MYSQL
##
MySQL AND PYTHON
CONNECTIVITY
##
##

##
##

You might also like