Computer Science Class XII 2022 23investigatory Project
Computer Science Class XII 2022 23investigatory Project
Computer Science Class XII 2022 23investigatory Project
A Project Report On
“Jumble Word
Game”
Submitted by Samuel
Kumar
Class – XII (Science)
Under the
Guidance of
Mr. Amit Yerpude
PGT (Computer Science)
Table of Contents
Serial Description
No.
1 Certificate
2 Acknowledgement
3 Introduction
4 Objective of the project
5 Proposed system
6 Modules used and their purposes
7 Flowchart
8 Source Code
9 Output Screens
10 Limitations & Future Scope
11 Requirements
12 Bibliography
1
Certificate
This is to certify that SAI SUBHM BISWAL student of class XII A has
successfully prepared the report on the Project entitled “Jumble Word Games”
under the guidance of SAQUIB ALAM sir (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 ( A).
--------------------------- --------------------------
Signature of Principal
----------------------
2
Acknowledgement
I would like to express a deep sense of thanks and gratitude to my project guide
Mr. SAIQUIB ALAM 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. RAVI PRAKASH (principal) sir for his co-
ordination in extending every possible support for the completion of this project.
3
Introduction
❖ About Jumble Word Game :-
Jumble word game 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 :-
4
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:-
5
Environment) executes instruction one line at a time. The python programming
language is one of the richest languages.
❖ 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 :-
6
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
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 MySql :-
9
7. 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).
8. MySql is customizable. The open-source GPL license allows
programmers to modify the MySql software to fit their own specific
environments.
10
8. Integrate different linguistic skills.
9. Increase learner participation in class.
10. It boosts up working memory.
➢ 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.
➢ Hence, the game will be over.
➢ At last, the user will get the total points.
11
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.
Proposed System
The aim of our project is to make a jumbled word game 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.
12
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 MySql has
helped us a lot to make and store data of jumbled words.
And this prevents a lot of time and money. The work becomes very easy with the
help of MySql.
Ask jumbled
word Get word
Game
USER Interface
Reply set word Database
correct word
13
System Development Life Cycle (SDLC)
The System Development Life Cycle as used in the construction of the server
appliance.
PLANNING ANALYSIS
DESIGN
SUPPORT
IMPLEMENTATION
14
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.
15
Module used and their purposes
a. random ( ) :-
For integers, there is an uniform selection from a range.
For a sequence, there is an uniform selection of a random element.
The syntax for using this function is „random.random()‟.
b. 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()‟.
c. shuffle ( ) :-
This function randomly reorders the element in a list.
It takes a sequence and returns the sequence in a random order. The
syntax for using this function is „randomly.shuffle()‟.
16
2. The String Module :-
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.
3. MySql.connector module :-
17
MySql.connector module has a set of methods in which one is used in that game.
a. cursor ( ) :-
A database cursor is a useful control structure of database connectivity.
Normally when we connect to a database from within a script/program,
then the query gets sent to the server, where it gets executed, and the set
of records retrieved as per query is sent over the connection.
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(
18
host=<host- name>,
user=<username>,
passwd=<password>
[,database=<database>])
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:
19
Flow-chart
Start
(Guess the
Jumbled word)
20
Get another
word Is
True „guessed word‟ False
==
„Original word‟
?
Point=+ Game
25 Over
Print final
Get another score
word
End
Source
Code
21
import random
import mysql.connector
conn=mysql.connector.connect(host='localhost',
user='root',
password='kv123456',
database='myproject')
cur=conn.cursor()
22
print("HELLO USER!!")
print("WELCOME TO THE WORLD OF JUMBLE WORD")
print("LET US START OUR GAME")
print("YOUR JUMBLED WORD ARE HERE")
print(" ")
if ans==orig:
point=point+100
print('Your answer is correct')
continue
else:
23
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
24
Output Screens
25
1. Welcome Screen of the game “Jumble Word”.
26
2. When the answer is correct.
27
3. When the user does not give right answer, then the user get hint of the first
letter of the original word.
28
4. 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.
29
5. When user lose the game, then it shows “GAME OVER”.
30
6. When it shows final score.
31
Limitations and Future Scope
❖ Limitations :-
32
• The number of words are limit.
❖ Future Scope :-
33
Requirements
❖ Hardware required :-
❖ Software required :-
34
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)
35
Thank You!!
36
37