0% found this document useful (0 votes)
8 views19 pages

Computer Science Investigatory Project

The document is a project report on 'File Management' submitted by Koushlendra Singh for the academic session 2024-2025, guided by Mr. Sharad Paliwal. It includes sections on Python programming, features of text files, project objectives, and the proposed system for a File Management App. The report emphasizes the use of Python for developing the app and outlines the importance of file management in digital environments.

Uploaded by

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

Computer Science Investigatory Project

The document is a project report on 'File Management' submitted by Koushlendra Singh for the academic session 2024-2025, guided by Mr. Sharad Paliwal. It includes sections on Python programming, features of text files, project objectives, and the proposed system for a File Management App. The report emphasizes the use of Python for developing the app and outlines the importance of file management in digital environments.

Uploaded by

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

KENDRIYA

VIDYALAYA
RRC FATEHGARH

Computer science
Project
Session : 2024-2025

A Project Report On
“File Management”

Submitted by: Koushlendra Singh


Class – XII B (Science)
Under the Guidance of
Mr. Sharad Paliwal
PGT (Computer Science)

1
Table of Contents

Serial Description Page


No. No.
1 Certificate 03
2 Acknowledgement 04
3 Introduction 05
4 Python Overview 06
5 Feature of Pyhton 07
6 About Text Files 09
7 Objective Of The Project 10
8 Proposed System 11
9 Module Used And Their Purposes 12
10 Source code 13-14
11 Output 15-16
12 Requirements 17
13 Bibliography 18

2
Certificate
This is to certify that Koushlendra Singhstudent of class XII (Science) has
successfully prepared the report on the Project entitled “ File Management App”
under the guidance of Mr. Sharad Paliwal(PGT Computer Science). The report
is the result of his efforts & endeavours. The report is found worthy of
acceptance as final Project report for the subject Computer Science of
class XII (Science).

Signature of Internal Examiner Signature of External Examiner

--------------------------- --------------------------

Signature of Principal

----------------------

3
Acknowledgement
I would like to express a deep sense of thanks and gratitude to my project guide
Mr. Sharad Paliwal for guiding me immensely through the course of the project.
He always envinced keen interest in my project. His constructive advice &
constant motivation have been responsible for the successful completion of his
project.

My sincere thank goes to Mr. Vickey Arora (principal) sir for his co-ordination
in extending every possible support for the completion of this project.

I must thanks to my classmates for their timely help and support for completion
of this project.

Last but not the least, I would like to thank all those who had helped directly or
indirectly towards the completion of this project.

Koushlendra Singh
Class- XII-B(Science)

4
Introduction

 File Management App :-

Jumble word game is Systems


File Management a new way to introduce
offers new vocabulary.
a comprehensive It is atoword
solution
game
managingwith aanclue and a set of
ever-growing wordsrepository
digital each of which is “Jumbled”
through a by
combination
scrambling. It isofa intuitive interfaces
game in which andword
a jumbled sophisticated
is given to the player and
under-the-hood
player functionalities
has to rearrange like metadata
the characters of the word tagging,
to make a correct
version control,
meaningful word to andscoremulti-user access. This unique blend of
maximum points.
simplicity
If and
the player is notcomplexity
able to guess makes them
the correct wordinvaluable to professionals
in first attempt then the hints
looking
will to keep
be given to them.their digital workspaces orderly, secure,
and efficient.
Beyond
The technical
computer picks aenvironments,
random word from FMS toolsandcater
a group thento everyday
creates users
a jumbled
as well,of with
version software
it, where options
the letters like eFileCabinet,
are in random Microsoft
order. The player has to guess the
OneDrive,
original word Dropbox, Apple iCloud, and Google Drive.
to win the game.
These tools exemplify the practicality of FMS by providing
accessible solutions for file organization and collaboration.
Example :-
A file management system is especially valuable when working
1. Jumble word:on
collaboratively erwta
projects, as it streamlines communication,
Correctworkflows,
optimizes word: water and ensures that everyone on the team is
2. Jumble
working word:
with themehtatasmci
correct version of a file.
Correct word: mathematics
3. Jumble word: keseg
Correct word: geeks

This is a one player game, at first program pick a random word from the given
database of words using choice() method of random module. After shuffling
the characters of picked word using sample method of random module and
shows the jumbled word on the screen. Current player should give the answer;
if it gives the correct answer after rearranging the characters then player‟s
score is incremented by one otherwise not. After quitting the game, winner is
decided on the basis of scores.

5
 Python Overview:-

Python is a general-purpose high-level programming language. It is an open


source language, released under a GPL-Compatible license. Python Software
Foundation (PSF), a non-profit organization, holds the copy-right of python.
Guido Van Rossum conceived python in the late 1980s. It was released in
1991 at Centrum Wiskunde & Informatica (CWI) in the Netherlands as a
successor to the ABC language. He named this language after a popular
comedy show called „Monty Python‟s Flying Circus‟ (and not after python -
the snake). In the last few years, it‟s popularity has increased immensely.
According to stackoverflow.com‟s recent survey, python is in the top ten most
popular technologies in 2018. It is also dynamically-typed because it carries
out type-checking at run time. It does so to make sure that the type of construct
matches what we except it to be. The distinctive feature of python is that it is
an interpreted language. The Python IDLE (Integrated Development &
Learning Environment) executes instruction one line at a time. The python
programming language is one of the richest languages.

6
 Features of Python :-

1. Easy :-
Python is a very easy to learn and understand; using this python tutorial,
any beginner can understand the basics of python.

2. Interpreted :-
It is interpreted (executed) line by line. This makes it easy to test and
debug.
3. Object Oriented :-
The python programming language supports classes and objects.
4. Free and Open-Source :-
The language and it‟s source code are available to the public for free;
there is no need to buy a costly license.
5. Portable :-
Since it is open source, we can run python on windows, mac, linux, or
any other platforms. Our programs will work without needing to the
changed for every machine.
6. GUI (Graphical User Interface) programming :-
We can use it to develop a GUI (Graphical User Interface). One way to
do this is through „Tkinter‟.
7. Large Library :-
Python provides us with a large standard library. We can use it to
implement a variety of functions without needing to reinvent the wheel
every time. Just pick the code we need and continue. This lets us to
focus on other important tasks.

7
 Advantages of Python :-

1. Extensible :-
2. Portable
3. Free & Open-Source
4. Readable
5. Embeddable
6. Improved Productivity
7. Simple and Easy
8. Object Oriented
9. Interpreted
10. Extensive Libraries

 How to install Python :-

1. Point your web browser to the download page on the Python website
(www.python.org).
2. Select the latest Windows x86 MSI Installer and click on the link to
download the .msi installer.
3. Run the installer.
4. Select „Install for all users‟ and click the Next > button.
5. Keep the default option (C:\Python32\) as the destination directory and
click Next > again.
6. Don‟t make any changes in the „Customize Python 3.2.3‟ dialog, just
click Next > again.
7. Click Yes if asked if this program should be allowed to install software
on your system.
8. Click the Finish button when installation completes.

8
 About Text Files:-
A text
MySql is afile
fast,can
easybetounderstood
use RDBMSas(Relational
a sequence of characters
Database Management
consisting
System) being usedof alphabets,
for many small numbers
and big and other MySql
businesses. specialis developed,
symbols.
marketed Files with
and supported extensions
by MySQL likeis.txt,
AB, which .py, .csv,
a Swedish etc.
Company.
are some examples of text files. When we open a text file
MySql is becoming is so popular because of many good reasons :-
using a text editor (e.g., Notepad),we see several lines
of text. However,
1. MySql the file
is released under contents are
an open-source not stored
language. So we in
havesuch
nothing
a way
to payinternally.
to use it. Rather, they are stored in sequence
of bytes consisting
2. MySql of 0sprogram
is a very powerful and 1s.inInit‟sASCII, UNICODE
own right. It handles a or
large
anysubset
otherof encoding scheme,
the functionality of the the
mostvalue of each
expensive character
and powerful database
of packages.
the text file is stored as bytes. So, while opening a
text file, uses
3. MySql the atext editor
standard formtranslates each ASCII
of the well-known SQL data value
language.
and shows us the equivalent character that is
4. MySql works on many operating system and with many languages readable
by including
the human PHP,being.
PERL, C, For example,
C++, JAVA, etc.the ASCII value 65
(binary
5. MySqlequivalent 1000001)
works very quickly willwell
and works be even
displayed bydata
with large a text
sets.
editor as the letter ‘A’ since the number 65 in ASCII
6. MySql is very friendly to PHP, the most appreciated language for web
character set represents ‘A’.
development.
7. MySql supports large databases, up to 50 million rows or more in a
Each line of a text file is terminated by a special
table. The default file size limit for a table is 4 GB, but we can increase
character, called the End of Line (EOL). For example,
thethis (if our operating system can handle) to a theoretical limit of 8
default EOL character in Python is the newline
millions Tera-Bytes (TB).
(\n). However, other characters can be used to indicate
8. MySql is customizable. The open-source GPL license allows
EOL. When a text editor or a program interpreter
programmers to modify the MySql software to fit their own specific
encounters the ASCII equivalent of the EOL character,
environments.
it displays the remaining file contents starting from a
new line. Contents in a text file are usually separated
 Forbyinstalling MySql :-
whitespace, but comma (,) and tab (\t) are also
commonly used to separate values in a text file.
1. For Python 2.7 or lower, install using pip as :-
pip install mysql.connector

2. For Python 3 or higher version, install using pip3 as :-


pip3 install mysql.connector

9
Objective of the project
The objective of this project is to let the students apply the programming
knowledge into a real-world situation/problem and exposed the students how
programming skills help in developing a good software.

Some key points are as follows :-


1. Utilising modern software tools for programming.
2. Apply object oriented programming principles effectively when
developing small to medium sized projects.
3. Write effective procedural code to solve small to medium sized
problems.
4. Demonstrate a breadth of knowledge in computer science, as exemplified
in the area of App development.
5. Demonstrate ability to conduct a research or applied computer science
project, requiring writing and presentation skills which exemplify
scholarly style in computer science.

10
Proposed System
The aim of our project is to make a File Management App in python language.
This project shows that Python is simple, easy to learn syntax, easy to use and
fast to develop.

The python interpreter and the extensive standard library are available in source
or binary form without charge for all major platforms, and can be freely
distributed.

Often, programmers fall in love with python because of the increased


productivity it provides. It is an open-source, simple and portable and a small
amount of code is needed to built the game.

One has to use the data management software. Many software products working
are now in markets, which have helped in making the data easier and efficiently.
Data management initially had to maintain a lot of paper work has to be done
but now software product has made our work easier and faster. Now only this
software has to be loaded on the computer and work can be done. And Text Files
has helped us a lot to make and store data of File Management App.

And this prevents a lot of time and money. The work becomes very easy with
the help of Text files and using Functions.

Ask jumbled
word Get word
Game
USER Interface
Reply set word Database
correct
word

11
Module used and their purposes

1. The OS Module :-

The OS module in Python provides functions for interacting


This module implements pseudo-random number generators for
with the operating system. OS comes under Python’s standard
various distributions.
utility modules. This module provides a portable way of using
operating system-dependent functionality.
The random module has a set of methods which used in that
game.*os* and *os.path* modules include many functions
The to
interact with the file system.
a. random ( ) :-
For integers, there is an uniform selection from a range.
Python-OS-Module Functions:
For a sequence, there is an uniform selection of a random element.
The syntax for using this function is „random.random()‟.
Here we will discuss some important functions of the Python os module :
b. randrange
1.Handling ( ) :-Working Directory
the Current
This returns a randomly selected element from the range created by
2.Creating
the astart,
Directory
stop and step arguments. The value of start is 0 by default.
Similarly
3.Listing out Filestheandvalue of step is
Directories 1 by
with default.
Python
The syntax for using this function is :- „random.randrange()‟.
4.Deleting Directory or Files using Python
c. shuffle ( ) :-
This function randomly reorders the element in a list.
Purposes:
It takes a sequence and returns the sequence in a random order.
The
1.The OS syntaxallows
module for using this
users to function
perform is „randomly.shuffle()‟.
OS-based tasks.

2.It provides information about the operating system.

3.It allows users to work with files and directories.

12
import random
Source code
import mysql.connector

conn=mysql.connector.connect(host='localhost',
user='root',
password='kv123456',
database='myproject')
cur=conn.cursor()

print("HELLO USER!!")
print("WELCOME TO THE WORLD OF JUMBLE WORD")
print("LET US START OUR GAME")
print("YOUR JUMBLED WORD ARE HERE")

print(" ")

point=0
while True:
qno=random.randrange(1,81)
sql='select*from jumbleword where WNO='+str(qno)
cur.execute(sql)
for i in cur:
word=i[1]
orig=word
print(orig)
word=list(word)
random.shuffle(word)
wordj=''.join(word)
print(wordj)
ans=input('Enter your word:')

13
if ans==orig:
point=point+100
print('Your answer is correct')
continue

else:
print('The word start with',orig[0])
ans=input('Enter your word:')

if ans==orig:
point=point+50
print('Your answer is correct')

else:
print('The word end with',orig[-1])
ans=input('Enter your word:')

if ans==orig:
point=point+25
print('Your answer is correct')

else:
print('GAME OVER')
print('Your Score is ',point)
print('I hope you have enjoyed this game, come back soon')

break

14
Outputs
1. Creating The file:

2. Viewing All Files:

Output
Screens
3. Writing In The Created File:

4. Reading The File Content:

15
Outputs
5. Deleting File:

 Limitations :-

 Only one player can play at a time.


 Registration of players cannot be done.
 Score of players cannot be saved.
 It does not provide timing system.
 The number of words are limit.
6. Invalid Syntax Error (If Choice Entered Is Wrong):

 Future Scope :-

 The number of player can be more than one at a time.


 Registration of players can be done.
 Score of players can be saved.
 Timing system can be provided.
 The number of words can be extended more than 10 letters.
7. File Not Found Error (If File Does Not Exists):

8. Exiting The App:

16
Requirements
 Hardware required :-

 Modern Operating System:


 Windows 7 or 10
 Mac OS X 10.11 or higher, 64-bit
 Linux: RHEL 6/7, 64-bit (almost all libraries also
work in Ubuntu)
 X86 64-bit CPU (Intel / AMD architecture)
 4 GB RAM
 5 GB free space
 Printer for printing project

 Software required :-

 Operating System – Windows 10


 Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32
bit (Intel)] on win32 for execution of program
 MS word, for preparing documentation

17
Bibliography
1. www.wikipedia.com
2. www.slideshare.net
3. www.geeksforgeeks.org
4. www.google.com
5. Computer Science with Python
by Sumita Arora Class XIIth(Book)

18
Thank You!!

19

You might also like