You are on page 1of 18

KENDRIYA VIDYALAYA BACHELI

-------------------
Principal’s sign
TABLE of CONTENTS
SERIA Description
L NO.
1 Certificate
2 Acknowlegdgemen
t
3 Introduction
4 Objective
5 SDLC
6 Modules used
7 Flowchart
8 Source code
9 Bibliography
ACKNOWLEDGEMENT
I would like to express a deep sense of thanks and gratitude to
my project guide Mr.prajjwal for guiding me immensely
through the course of the project.
He always envinced keen interest in my project. His
constructive advice and constant motivation have been
responsible for the successful completion of this project

I must say 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 me directly or indirectly towards the completion of the
project

Devashish Roy
CLASS- XI A
INTRODUCTION
A scientific calculator which can perform addition,
subtraction, multiplication and division of 2
numbers at a time

It can perform exponentiation of 2 numbers and


square root of any number

It can find logarithms with correct base and


number
It can compute sine, cosine and tangent of a
angle entered
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.
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.
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 games.
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 game 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
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
Modules used and their purpose

1.math module:
The math module contains many mathematic functions
and operators
Like square root, logarithm , etc.

A. sqrt(): gives the square root of any number

B.log(num,base):Solves a logarithm with given no. & base

C. radians(): converts angle in degrees into radians

D. sin(): gives the sine value of an angle

E. cos(): gives the cosine value of an angle

F. tan(): gives the tangent value of an angle


FLOWCHART
SCIENTIFIC
CALCULATOR

BASIC LOGARITHMS
ARITHMETIC Trigonometric
functions

math.log( , )

math.sin()

math.cos()

math.tan()
SOURCE CODE FOR SCIENTIFIC
CALCULATOR :
import math

print("Scientific Calculator")
print("1. Addition")
print("2. Subtraction")
print("3. Multiplication")
print("4. Division")
print("5. Exponentiation")
print("6. Square Root")
print("7. Logarithm")
print("8. Trigonometric Functions")
print("0. Exit")

while True:
choice = int(input("Enter your choice: "))
if choice == 0:
print("Exiting...")
break

elif choice == 1:
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
result = num1 + num2
print("The sum is:", result)

elif choice == 2:
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
result = num1 - num2
print("The difference is:", result)

elif choice == 3:
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
result = num1 * num2
print("The product is:", result)
elif choice == 4:
num1 = float(input("Enter the first number: "))
num2 = float(input("Enter the second number: "))
result = num1 / num2
print("The quotient is:", result)

elif choice == 5:
base = float(input("Enter the base: "))
exponent = float(input("Enter the exponent: "))
result = math.pow(base, exponent)
print("The result is:", result)

elif choice == 6:
num = float(input("Enter the number: "))
result = math.sqrt(num)
print("The square root is:", result)

elif choice == 7:
num = float(input("Enter the number: "))
base = float(input("Enter the base: "))
result = math.log(num, base)
print("The logarithm is:", result)

elif choice == 8:
angle = float(input("Enter the angle in degrees: "))
result_sin = math.sin(math.radians(angle))
result_cos = math.cos(math.radians(angle))
result_tan = math.tan(math.radians(angle))
print("Sine:", result_sin)
print("Cosine:", result_cos)
print("Tangent:", result_tan)

else:
print("Invalid choice. Please enter a valid option.")
OUTPUT SCREEN:
Scientific Calculator
1. Addition
2. Subtraction
3. Multiplication
4. Division
5. Exponentiation
6. Square root
7. Logarithm
8. Trignometric function
0. Exit
Enter your choice: 6
Enter the number : 16
The square root is 4.0
Enter your choice : 0
Exitiing….
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
BIBLIOGRAPHY:
1. www.wikipedia.com
2. www.google.com
3. https://pythonmania.org
4. Computer science with python by
Sumita Arora Class XI

You might also like