0% found this document useful (0 votes)
726 views15 pages

Coverpage of Practical File

This document certifies that Mr. Syed Farhan of Class XII-A, Roll Number [removed], completed various programming assignments for his Computer Science practical examination during the 2022-23 academic year. It includes an index listing 20 programs completed on topics like file input/output, string manipulation, random number generation, stacks, SQL queries, and mathematical functions. The record of work is signed by the teacher-in-charge, Mrs. Neha Gupta, and an external examiner from Ras Al Khaimah.

Uploaded by

Shone
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
726 views15 pages

Coverpage of Practical File

This document certifies that Mr. Syed Farhan of Class XII-A, Roll Number [removed], completed various programming assignments for his Computer Science practical examination during the 2022-23 academic year. It includes an index listing 20 programs completed on topics like file input/output, string manipulation, random number generation, stacks, SQL queries, and mathematical functions. The record of work is signed by the teacher-in-charge, Mrs. Neha Gupta, and an external examiner from Ras Al Khaimah.

Uploaded by

Shone
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

CERTIFICATE

Certified to be the bonafied record of the work done


by Mr SYED FARHAN Of Class XII-A
Roll No. for Computer Science in the school
Laboratory during the academic year 2022-23 and
submitted for the Practical Examination held on

Teacher-in-Charge Mrs. Neha Gupta

External Examiner
RAS AL KHAIMAH

RECORD OF PRACTICAL WORK


IN
COMPUTER SCIENCE
YEAR:2022-2023

Name: SYED FARHAN


Class: XII-A
Roll
No:
INDEX
Sl. No. Programs Page No.
1 Read a text file line by line and display each word separated by a #.

2 Read a text file and display the number of


vowels/consonants/uppercase/lowercase characters in the file.

3 Remove all the lines that contain the character 'a' in a file and write
it to another file.

4 Create a binary file with name and roll number. Search for a given
roll number and display the name, if not found display appropriate
message.

5 Create a binary file with roll number, name and marks. Input a roll
number and update the marks

6 Write a random number generator that generates random numbers


between 1 and 6 (simulates a dice).

7 Write a Python program to implement a stack using list.

8 Create a CSV file by entering user-id and password, read and search
the password for given user-id.

9 Write a Program to check if the entered number is Armstrong or not

10 Write a Program to find factorial of the entered number.

11 Write a program to find whether an inputted number is perfect or


not.

12 Read a file line by line and print it.

13 Program to fi nd simple interest using a user defi ned


functi on with parameters and with return value.

14 Write a python script to take input for a number and print its table

15 Program to fi nd sum of two numbers using a user defi ned


functi on with parameters.

16 Write a python script to take input for a number calculate and print
its square and cube?

17 Write a function to search a record stored in a table using python


and MySQL interface

18 Write a python script to take input for 3 numbers, check and print
the largest number?

19 Write a python script to take input for 2 numbers calculate and print
their sum, product and difference

20 Program to print result depending upon the percentage.


Python Programming
Newfile.txt

1.Read a text file line by line and display each word


separated by a #.

OUTPUT:

2. Read a text file and display the number of


vowels/consonants/uppercase/lowercase characters in the
file.
OUTPUT:

3. Remove all the lines that contain the character 'a' in a file
and write it to another file.

OUTPUT:

4. Create a binary file with name and roll number. Search for a
given roll number and display the name, if not found display
appropriate message.

OUTPUT:
5. Create a binary file with roll number, name and marks. Input
a roll number and update the marks.
OUTPUT:
6. Write a random number generator that generates random
numbers between 1 and 6 (simulates a dice)
OUTPUT:

7. Write a Python program to implement a stack using list

OUTPUT:

8. Create a CSV file by entering user-id and password, read and


search the password for given user-id.

OUTPUT:

9. Write a Program to check if the entered number is Armstrong


or not

OUTPUT:

10. Write a Program to find factorial of the entered number.

OUTPUT:

11. Write a program to find whether an inputted number is


perfect or not

OUTPUT:

12. Read a file line by line and print it.


OUTPUT:

13. Program to find simple interest using a user


defined function with parameters and with return
value.

OUTPUT:

14. Write a python script to take input for a number and print its
table

OUTPUT:

15. Program to find sum of two numbers using a user


defined function with parameters.
OUTPUT:

16. Write a python script to take input for a number


calculate and print its square and cube?

OUTPUT:

17. Write a function to search a record stored in a table using


python and MySQL interface

OUTPUT:
18. Write a python script to take input for 3 numbers, check and
print the largest number

OUTPUT:

19. Write a python script to take input for 2 numbers calculate


and print their sum, product and difference

OUTPUT:

20. Program to print result depending upon the


percentage.

OUTPUT:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy