0% found this document useful (0 votes)
17 views12 pages

Class 11 Computer Project

The document is a project report submitted by M.K. Nivetha for the All India Senior School Certificate Examination, focusing on three Python projects: a Dice Rolling Simulator, Rock Paper Scissors, and a Mad Libs Generator. It includes acknowledgments, system requirements, and source code for each project. The work is certified by the mentor and principal, ensuring it meets the guidelines of the CBSE.

Uploaded by

kaala -karikalan
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)
17 views12 pages

Class 11 Computer Project

The document is a project report submitted by M.K. Nivetha for the All India Senior School Certificate Examination, focusing on three Python projects: a Dice Rolling Simulator, Rock Paper Scissors, and a Mad Libs Generator. It includes acknowledgments, system requirements, and source code for each project. The work is certified by the mentor and principal, ensuring it meets the guidelines of the CBSE.

Uploaded by

kaala -karikalan
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/ 12

PM SHRI KENDRIYA

VIDYALAYA
TIRUVANNAMALAI
2024-2025

COMPUTER
SCIENCE
PROJECT

2024-2025

AISSCE - All India Senior School Certificate


Examination
STREAM: SCIENCE
CLASS -XI
USING PYTHON
A Project Report Submitted in Partial Fulfillment of the
Requirements

SUBMITTED BY SUBMITTED TO
Mr. PONKARTHIK R
M.K.NIVETHA
PGT COMPUTER
ROLL NO : 11113
SCIENCE
UNDERTAKING

I have declared that the work presented in this project, titled “DICE ROLLING

SIMULATOR, ROCK PAPER SCISSORS, TIKTACTOE ” was submitted to Mr.

PONKARTHIK R, PGT COMPUTER SCIENCE, PM SHRI KENDRIYA

VIDYALAYA TIRUVANNAMALAI for the award of the CBSE (Central Board of

Secondary Education)-AISSE (All India Senior School Certificate

Examination) class XII certificate. We have not plagiarized or submitted the

same work for any other examination. In the event that this undertaking is found

incorrect, we accept that our certificates may be unconditionally withdrawn.

DATE: _______________
PLACE: PM SHRI KENDRIYA VIDYALAYA TIRUVANNAMALAI

SUBMITTED BY
M.K.NIVETHA
ROLL NO:11113
CERTIFICATE

I have certified that the work contained in the project titled “DICE ROLLING

SIMULATOR, ROCK PAPER SCISSORS, TIKTACTOE” by M.K.NIVETHA of Class XII

of PM SHRI KENDRIYA VIDYALAYA TIRUVANNAMALAI has been carried out

under my supervision and that this work has not been submitted elsewhere for an

AISSE-All India Senior School Certificate Examination certificate, and he has

taken an interest in and shown the most sincerity in the completion of this

project. I certify this project up to my expectations and as per guidelines issued

by the CBSE, Central Board of Secondary Education, New Delhi.

MENTOR:

Mrs. SYRIAC MARY


PRINCIPAL
PM SHRI KENDRIYA VIDYALAYA TIRUVANNAMALAI

PROJECT GUIDE:
Mr. PONKARTHIK R
PGT COMPUTER SCIENCE
PM SHRI KENDRIYA VIDYALAYA TIRUVANNAMALAI

INTERNAL EXAMINER
EXTERNAL EXAMINER
OBSERVER
PRINCIPAL

ACKNOWLEDGEMENT

I am especially indebted to our principal Mrs. SYRIAC MARY


PRINCIPAL, PM SHRI KENDRIYA VIDYALAYA TIRUVANNAMALAI. It is with

pleasure that I acknowledge my sincere gratitude to our mentor, Mr.

PONKARTHIK R., PGT COMPUTER SCIENCE, PM SHRI KENDRIYA

VIDYALAYA TIRUVANNAMALAI. It is with pleasure that I to all the staff

members of PM SHRI KENDRIYA VIDYALAYA TIRUVANNAMALAI. We owe

our sincere gratitude to KENDRIYA VIDYALAYA SANGATHAN. Our heartfelt

thanks to the CBSE (Central Board of Secondary Education) and the AISSE

(All India Senior School Certificate Examination). We also express our

deepest gratitude to our parents. We would like to wind up by paying our

heartfelt thanks to all our near and dear ones. Finally, I would like to express my

sincere appreciation for all the other students in my batch for their friendship and

the fine time that we all shared together.


SYSTEM REQUIREMENTS OF THE PROJECT

Recommended System Requirements


Processors: Intel® Core™ i3 processor 13P00K at 3.60 GHz.
Disk space: 2 to 4 GB.
Operating systems: Windows® 10, MAC, and UBUNTU.
Python Versions: 3.X.X or Higher.

Minimum System Requirements


Processors: Intel Atom® processor or Intel® Core™ i3 processor.
Disk space: 1 GB.
Operating systems: Windows 10 or later, MAC OS, and UBUNTU.
Python Versions: 2.7.X, 3.6.X.

SUBMITTED BY
M.K.NIVETHA
ROLL NO 11113
SOFTWARE REQUIREMENTS OF THE PROJECT
1. PYTHON
2. MS OFFICE
3. PDF
PYTHON
The programming language Python was conceived in the late 1980s,[1] and its
implementation was started in December 1989[2] by Guido van Rossum at CWI in
the Netherlands as a successor to ABC capable of exception handling and
interfacing with the Amoeba operating system.[3] Van Rossum is Python's
principal author, and his continuing central role in deciding the direction of
Python is reflected in the title given to him by the Python community, Benevolent
Dictator for Life (BDFL).[4][5] (However, Van Rossum stepped down as leader on
July 12, 2018.[6]). Python was named after the BBC TV show Monty Python's
Flying Circus. [7]
Python 2.0 was released on October 16, 2000, with many major new features,
including a cycle-detecting garbage collector (in addition to reference counting)
for memory management and support for Unicode. However, the most important
change was to the development process itself, with a shift to a more transparent
and community-backed process. [8]
Python 3.0, a major, backwards-incompatible release, was released on December
3, 2008[9] after a long period of testing. Many of its major features have also
been backported to the backwards-compatible, though now-unsupported, Python
2.6 and 2.7. [10]
In February 1991, Van Rossum published the code (labeled version 0.9.0) to
alt.sources.[11][12] Already present at this stage in development were classes
with inheritance, exception handling, functions, and the core datatypes of list,
dict, str and so on. Also in this initial release was a module system borrowed from
Modula-3; Van Rossum describes the module as "one of Python's major
programming units".[1] Python's exception model also resembles Modula-3's,
with the addition of an else clause.[3] In 1994 comp.lang.python, the primary
discussion forum for Python, was formed, marking a milestone in the growth of
Python's user base.[1]
Python 3.0 broke backward compatibility, and much Python 2 code does not run
unmodified on Python 3.[34] Python's dynamic typing combined with the plans to
change the semantics of certain methods of dictionaries, for example, made
perfect mechanical translation from Python 2.x to Python 3.0 very difficult. A tool
called "2to3" does the parts of translation that can be done automatically. At this,
2to3 appeared to be fairly successful, though an early review noted that there
were aspects of translation that such a tool would never be able to handle.[35]
Prior to the roll-out of Python 3, projects requiring compatibility with both the 2.x
and 3.x series were recommended to have one source (for the 2.x series), and
produce releases for the Python 3.x platform using 2to3. Edits to the Python 3.x
code were discouraged for so long as the code needed to run on Python 2.x.[10]
This is no longer recommended; as of 2012 the preferred approach was to create
a single code base that can run under both Python 2 and 3 using compatibility
modules
Some of the major changes included for Python 3.0 were:
Changing print so that it is a built-in function, not a statement. This made it easier
to change a module to use a different print function, as well as making the syntax
more regular. In Python 2.6 and 2.7 print() is available as a builtin but is masked
by the print statement syntax, which can be disabled by entering from __future__
import print_function at the top of the file[37]
Removal of the Python 2 input function, and the renaming of the raw_input
function to input. Python 3's input function behaves like Python 2's raw_input
function, in that the input is always returned as a string rather than being
evaluated as an expression
Moving reduce (but not map or filter) out of the built-in namespace and into
functools (the rationale being code that uses reduce is less readable than code
that uses a for loop and accumulator variable)[38][39]
Adding support for optional function annotations that can be used for informal
type declarations or other purposes[40]
Unifying the str/unicode types, representing text, and introducing a separate
immutable bytes type; and a mostly corresponding mutable bytearray type, both
of which represent arrays of bytes[41]
Removing backward-compatibility features, including old-style classes, string
exceptions, and implicit relative imports
A change in integer division functionality: in Python 2, integer division always
returns an integer. For example 5 / 2 is 2; whereas in Python 3, 5 / 2 is 2.5. (In
both Python 2 – 2.2 onwards – and Python 3, a separate operator exists to provide
the old behavior: 5 // 2 is 2)
Subsequent releases in the Python 3.x series have included additional,
substantial new features; all ongoing development of the language is done in the
3.x series.
1. Dice Rolling Simulator
As the name of the program suggests, we will simulate rolling dice.
One of the fascinating Python projects will generate a random number
every time the program rolls the dice, and the user can do this as
many times as he wants. The computer program will generate a
random number between 1 and 6 when the user rolls the dice.

Here’s the Source Code.

import random
start = input('Please press ENTER to roll the dice.')
def dice():
dice = random.randint(1,6)
return dice
print('The number rolled is ',dice(),'.')

while True:
roll_again = input('Would you like to roll again? Y/N ')
if roll_again.lower()=="y":
print('The new number rolled is ',dice(),'.')
else:
print('Thanks for playing.')
break

OUTPUT:
2. Rock, Paper, Scissors

We use the random function again in this situation. The program


doesn’t move until you do, then it moves after you do. You have the
option of entering an entire string or just one alphabet to indicate the
move. It will be necessary to set up a function to verify the move’s
legality.
Here’s the Source Code

import random
name = input("Welcome to Rock-Paper-Scissors.\n\nPlease enter your name: ")
game = {'R': 'Rock', 'P': 'Paper', 'S': 'Scissors'}
opt = list(game)
# Input loop
while True:
user = input('\nPick "R" for rock, "P" for paper, "S" for scissors: ')
if user not in opt:
print("You didn't choose a valid option. Please try again\n")
CPU = random.choice(opt)
print('\n{} ({}) : CPU ({})'.format(name, game[user], game[CPU]))
if user == CPU:
print("It's a tie. Please play again.\n")
win = user + CPU
if win in ['RS', 'PR', 'SP']:
print('{} beats {} \n\nWINNER: {}'.format(game[user], game[CPU], name))
elif win in ['SR', 'RP', 'PS']:
print('{} beats {} \n\nWINNER: CPU'.format(game[CPU], game[user]))
break

OUTPUT:
3. Mad Libs Generator
For those just getting started in software development, this is the ideal
project. You will learn how to work with user-inputted data through
this project, which is primarily focused on strings, variables, and
concatenation.
The way the programme is designed, users will be prompted to enter
a series of input data that will be interpreted as a Mad Lib.

Here’s the Source Code

print("")
print("<||<||<|| MAD LIBS GENERATOR ||>||>||>")
print("")
print("Hey! Let's get started on your Mad Libs.")
print("Enter in words as specified below...")
print("")
print("")
name = input("Male name: ")
adj1 = input("Adjective 1: ")
adj2 = input("Adjective 2: ")
activity1 = input("Activity 1: ")
activity2 = input("Activity 2: ")
activity3 = input("Activity 3: ")
noun1 = input("Noun 1: ")
noun2 = input("Noun 2: ")
noun4 = input("Noun 4 (plural): ")
place1 = input("Place 1: ")
place2 = input("Place 2: ")
print("")
print(name, " is a ", adj1, noun1, " who lives in ", place1, " and is from a ",
adj2, " family. He lives with his ", noun2, " who is the breadwinner of the
family. She earns ", noun4, " by ", activity1, " at Walmart. When ", name, "'s ",
noun2, " has free time they ", activity2, " together and have fun ", activity3,
"in", place2, ".")
print("")
print("The end!")

OUTPUT:
Thank you

You might also like