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

Programming File

Uploaded by

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

Programming File

Uploaded by

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

MARIAMPUR

SENIOR SECONDARY
SCHOOL

PROGRAMMING FILE
COMPUTER PROJECT SESSION-2023-24
SCHOOL SEAL: SUBMITTED BY:
KSHMYA YADAV
12th-SCI
ROLL NO. - 35
ACKNOWLEDGEMENT
I would like to say thank you to my principal Rev. Sr.
Ranjana and my teacher Mrs. Megha Chelani who
has given me this golden opportunity of doing this
“programming file”. It helped me in doing a lot of
research and study about various things related to
the topics.
Finally I would like to thank my parents and friends
who helped me finalize the topic within the time limit.

KSHMYA YADAV

12TH SCIENCE
CERTIFICATE
This is to certify you that I, Kshmya Yadav of class
12th science has successfully completed her
“Programming file” under my supervision of the
academic year of 2023-24.

All the work and research on the topic is done by the


candidate herself. The approach is very sincere and
scientific.
SIGNATURE:

SIGNATURE:

(EXAMINER)
INDEX
REVIEW OF PYTHON – I

 Generating different type of random numbers

REVIEW OF PYTHON – II

 Print sum of n natural numbers


 Calculating factorial of a number

REVIEW OF PYTHON – III

 Counting number of vowels


 Making dictionary and displaying it

USER DEFINED FUNTIONS

 Check odd and even, print square and print cube


 Calculating perimeter of desired shapes
 Calculate percentage and checking if pass or fail

FILE HANDLING

 TEXTFILE – Checking no of bytes, lines and words in a textfile


 BINARY FILE – Adding elements, displaying them and searching a
records in a binary file

STACKS

 Menu driven program on stack operations


STRUCTURED QUERY LANGUAGE

PYTHON WITH SQL CONNECTIVITY

 Display all students of Sci stream


 Update rollno of a student
 Order all sci students according to rollno
REVIEW OF PYTHON – 1
QUES – Generate random float or integer values as per the
user.
REVIEW OF PYTHON – II
QUES – Finding sum of N natural numbers
Code:

Output:

QUES – Print factorial of a natural number.


Code :
Output:

REVIEW OF PYTHON - III


QUES – Counting number of vowels in a string
Code:

Output:

Ques – Create a dictionary from user and display it


Code:
Output:
USER DEFINED FUNCTIONS
Ques – Check odd and even of a num, print sq and cube of a
number (Menu driven)
Code:
Output:
Ques – Calculating perimeter of desired shapes
Code:
Output:
Ques – Calculating percentage and checking if pass or fail (Menu
driven)

Code:
Output:
FILE HANDLING

(TEXTFILE)

Ques – Counting no of bytes, words and lines in a textfile (Menu


driven)

File:
Code:

Output
(BINARY FILE)

Ques – Take records from the user, display them and find records
in a binary file (Menu driven)
Code :
Output:

File:
STURUCTURED QUERY LANGUAGE

Table - 1:

Ques- Create a table which includes these fields

Query:

Ques: Enter values in the created table


Ques: Display table

Query:

Ques: Rename table “compro” to “studentpro”

Query:
Table – 2

Ques: Select data of students who have maths as their sub.

Query:

Ques: Dsiplay name and subject of students whose name ends w


“a”

Query:
Ques: Change subject from Bio to maths of a student.

Query:

Ques: Decrease pecentage of roll no 3 by 5.

Query:
Ques: Select avg, max, min of percentage

Query:

Ques: Display max and min percentage subject wise.

Query:
Ques: Arrange data in ascending and descending order,
according to percentage

Query:

Ques: Display minimum percentage.

Query:
Ques: Delete the percentage column.

Query:

Ques: Select name from both table1 and table2.

Query:
STACKS
Ques:

Menu driven program on stack operations


Output:
PYTHON WITH SQL
CONNECTIVITY
Ques: Display all students in science stream

Code:

Output:

Ques: Update rollno of a student

Code:

Output:
In Sql table:

Ques: Order all sci students according to rollno

Code:

Output:
REMARKS:
EXAMINER 1:

EXAMINER 2:

You might also like