Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 16

COMPUTER SCIENCE

PROJECT FILE
SESSION: 2022-23
SUBJECT CODE: 083
NAME : Chakrika.Pandalaneni_______
CLASS : 11________ SEC:A2________
ROLL NO: 03_______________________
CHENNAI PUBLIC SCHOOL
THIRUMAZHISAI - CHENNAI - 600124

Bonafide Certificate

This is to certify that this project is done by


______________________________________________

of class XI _____ Roll no:_______________ submitted in


the subject of __________________________________
for Practical Examination for the year 2022 - 23.

Date: Signature of Internal Examiner


ACKNOWLEDGEMENT

I wish to express my sincere thanks to our Founder and


Chairman, Shri. N. Devarajan, for this endeavor in educating
us in his premier institution. I would like to express my deep
gratitude to our Correspondent Shri. Balaji Dagupathi, for
his kind words and enthusiastic motivation which inspired
us a lot in completing this project. I wish to express my
sincere thanks to our Director Shri. Suman Babu
Yarlagadda, for providing us with necessary facilities for
completion of this project.
I would like to express my thanks and gratitude to our
Principal, Mrs. Chitrakala Ramachandran, her
encouragement and her sincere guidance. I am obliged to
thank our senior Vice Principal Mrs. Suchitra Santosh, for
providing us with ample time and encouragement for
successful completion of this project. I cover my thanks to
staff in the Computer science department for their valuable
Page4of22
support.

Page5of22
TABLE OF CONTENTS

S No TOPIC PAGE NO

1 Synopsis 1

2
2 System Requirements

Page6of22
S No TOPIC PAGE NO

2
3 Flowchart

3
4 Code

4
5 Outputs

6
6 Bibliography

Page7of22
SYNOPSIS

Problem Definition: Write a python program to calculate using


addition subtraction multiplication and division.

Team Members: Chakrika

Team Contribution: Improvisation, code, data flow diagram,

Objective: Code a basic calculator

Brief: Code a basic calculator consisting of common operators like


addition, subtraction, multiplication and division for 2 values .

Area of improvement: The limitation of values that can be given


currently can be improved for more.

Page8of22
SYSTEM REQUIREMENTS:
1. HARDWARE:

● A computer/laptop with operating system windows 7 or above

● X86 64_bit cpu(intel/amd architecture)

● 4 GB ram

● 5 GB free disc space

2. SOFTWARE:

Page9of22
● Operating System –OS7, OS8

● Python IDLE

● MYSQL

● MYSQL- Python connect

DATA FLOW DIAGRAM

Page10of22
CODE
print("WELCOME TO CALCULATOR")
while True:
print("\n\t\t Choose the operation to perform:")
print('''\n\t\t 1. Addition of two numbers
\n\t\t 2. Subtraction of two numbers
\n\t\t 3. Multiplication of two numbers
\n\t\t 4. Division of two numbers
\n\t\t 5. Exit''')

choice = int(input("\n\t\tEnter your Choice: "))

if choice == 1:
print("\nAddition of two numbers")
a = int(input("\nEnter the first number: "))
b = int(input("\nEnter the second number: "))
sum = a + b
print(a, "+", b, "=", sum)
elif choice == 2:
print("\nSubtraction of two numbers")
a = int(input("\nEnter first number: "))
b = int(input("\nEnter second number: "))
difference = a - b
print(a, "-", b, "=", difference)
elif choice == 3:
print("\nMultiplication of two numbers")
a = int(input("\nEnter the first number: "))
b = int(input("\nEnter the second number: "))
product = a * b
print(a, "*", b, "=", product)
elif choice == 4:
print("\nDivision of two numbers")
a = int(input("\nEnter the first number: "))
b = int(input("\nEnter the second number: "))
quotient = a / b

Page11of22
remainder = a % b
print("\nQuotient of", a, "/", b, "=", quotient)
print("\nRemainder of", a, "%", b, "=", remainder)
elif choice == 5:
print("\n\t\tThank You! See you again.")
quit()

OUTPUT-1

OUTPUT-2

Page12of22
OUTPUT-3

Page13of22
OUTPUT-4

Page14of22
OUTPUT-5

BIBLIOGRAPHY
https://www.google.com

Page15of22
Page16of22

You might also like