Filtered Project Report
Filtered Project Report
A Project Report On
“ ”
Class – XII-C
Roll Number- 24
Table of Contents
Certificate
This is to certify that Mannan Sethi student of class XII (Science) has successfully prepared
the report on the Project entitled “ ” under the guidance of Mrs. Anjali Rawlley (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 -
C.
Signature of Internal Examiner Signature of External Examiner
--------------------------- --------------------------
Signature of Principal
----------------------
Acknowledgement
I would like to express a deep sense of thanks and gratitude to my project guide Mr. Amit
Yerpude 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. Rajesh Kumar (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.
MANNAN SETHI
Introduction
About Jumble Guess :-
Jumble Guess is a new way to introduce new vocabulary. It is a word game with a clue and a
set of words each of which is “Jumbled” by scrambling. It is a game in which a jumbled word
is given to the player and player has to rearrange the characters of the word to make a
correct meaningful word to score maximum points.
If the player is not able to guess the correct word in first attempt then the hints will be given
to them.
The computer picks a random word from a group and then creates a jumbled version of it,
where the letters are in random order. The player has to guess the original word to win the
game.
Example :-
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.
Python Overview:-
Easy :-
Python is a very easy to learn and understand; using this python tutorial, any beginner can
understand the basics of python.
Interpreted :-
It is interpreted (executed) line by line. This makes it easy to test and debug.
Object Oriented :-
The language and it‟s source code are available to the public for free; there is no need to
buy a costly license.
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.
We can use it to develop a GUI (Graphical User Interface). One way to do this is through
„Tkinter‟.
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.
Advantages of Python :-
Extensible :- 2. Portable
Readable
Embeddable
Improved Productivity
Object Oriented
Interpreted
Extensive Libraries
Point your web browser to the download page on the Python website .
Select the latest Windows x86 MSI Installer and click on the link to download the .msi
installer.
Keep the default option (C:\Python32\) as the destination directory and click Next > again.
Don‟t make any changes in the „Customize Python 3.2.3‟ dialog, just click Next > again.
Click Yes if asked if this program should be allowed to install software on your system.
About MySql :-
MySql is a fast, easy to use RDBMS (Relational Database Management System) being used
for many small and big businesses. MySql is developed, marketed and supported by MySQL
AB, which is a Swedish Company. MySql is becoming is so popular because of many good
reasons :-
MySql is released under an open-source language. So we have nothing to pay to use it.
MySql is a very powerful program in it‟s own right. It handles a large subset of the
functionality of the most expensive and powerful database packages.
MySql works on many operating system and with many languages including PHP, PERL, C,
C++, JAVA, etc.
MySql works very quickly and works well even with large data sets.
MySql is very friendly to PHP, the most appreciated language for web development.
MySql supports large databases, up to 50 million rows or more in a table. The default file
size limit for a table is 4 GB, but we can increase this (if our operating system can handle) to
a theoretical limit of 8 millions Tera-Bytes (TB).
MySql is customizable. The open-source GPL license allows programmers to modify the
MySql software to fit their own specific environments.
For Python 2.7 or lower, install using pip as :- pip install mysql.connector
For Python 3 or higher version, install using pip3 as :- pip3 install mysql.connector
If the user enter the right answer, then the user will be rewarded by 100 points.
If the user does not give the right answer, then the user will get the hint of the first letter of
the original word.
And if the user enter the right answer, then the user will be rewarded by 50 points.
If the user does not give the right answer even after getting the hint of the first letter of the
original word, then the user will get the hint of the last letter of the original word.
And if the user enter the right answer, then the user will be rewarded by 25 points.
If the user does not give the right answer even after getting the hint of the last letter of the
original word, he/she will lose the game.
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.
Ask jumbled
Game
USER Interface
The System Development Life Cycle as used in the construction of the server appliance.
IMPLEMENTATION
The system development life cycle is a project management technique that divides complex
projects into a smaller, more easily managed segments or phases. Segmenting projects
allow managers to verify the successful completion of project phases before allocating
resources to subsequent phases.
Software development projects typically include planning, creating, developing, testing and
maintenance. However, the phases may be divided differently depending on the
organization.
The random module has a set of methods which used in that game.
random ( ) :-
For a sequence, there is an uniform selection of a random element. The syntax for using this
function is „random.random()‟.
randrange ( ) :-
This returns a randomly selected element from the range created by the start, stop and step
arguments. The value of start is 0 by default. Similarly the value of step is 1 by default.
The syntax for using this function is :- „random.randrange()‟.
shuffle ( ) :-
It takes a sequence and returns the sequence in a random order. The syntax for using this
function is „randomly.shuffle()‟.
This module contains some constants, utility function and classes for string manipulation.
The string module has a set of method in which one is used in that game.
join ( ) :- the join() methods provides a flexible way to create strings from iterable objects.
It joins each element of an iterable (such as list, string and tuple) by a string separator (the
string on which the join () is called) and return the concentrated string.
The syntax for using this method is „string.join(iterable)‟.
MySql.connector module :-
API that is compliant with the Python Database API Specification v2.0 (PEP 249). It is
written in pure Python and does not have any dependencies except for the Python Standard
Library.
MySql.connector module has a set of methods in which one is used in that game.
a. cursor ( ) :-
b. connect ( ) :-
After we have installed Python MySql connector, we can write python scripts using
MySql.connector library that can connect to MySql databases from within Python.
Next we need to establish connection to a MySql database using connect() function of
mysql.connector package.
<connection-object>=mysql.connector.connect(
c. execute ( ) :-
This method is used to executes an SQL statement. Once we have created a cursor, we can
execute SQL query using execute() function with cursor object .
For example,
If we want to view all the records of table data which is a table in the database test to which
we established connection, we can execute SQL query “select * from data” by writing:
Start
from Database
(Guess the
Jumbled word)
==
„Original
Word‟
== of word
„Original
Word‟
Get another
word Is
==
„Original word‟
?
Point=+ Game
25 Over
Print final
Get another score word
End
Source Code
import random
import mysql.connector
conn=mysql.connector.connect(host='localhost',
user='root', password='kv123456',
database='myproject')
cur=conn.cursor()
print("HELLO USER!!")
print(" ")
if ans==orig:
continue
else:
print('The word start with',orig[0]) ans=input('Enter your word:')
if ans==orig:
point=point+50
else:
if ans==orig:
point=point+25
else:
print('I hope you have enjoyed this game, come back soon')
break
Output Screens
Welcome Screen of the game “Jumble Word”.
When the user does not give right answer even after getting the hint of the first letter of the
original word, then the user get hint of the last letter of the original word.
Limitations :-
Future Scope :-
Hardware required :-
Windows 7 or 10
Linux: RHEL 6/7, 64-bit (almost all libraries also work in Ubuntu)
5 GB free space
Software required :-
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
Bibliography
Computer Science with Python by Sumita Arora Class XIIth(Book)
Thank You!!