A
MICRO PROJECT REPORT
ON
Creating Simple Calculator using Function in
python(2020-2021)
SUBMITTED BY
MADHURI D. NIKAM. Enrollment No. 1805300093
SNEHAL S. PAWAR. Enrollment No. 1805300088
ADITI D. JAGTAP. Enrollment No. 1805300084
RAJESHWARI S. PURKAR. Enrollment No. 1805300089
Project Guided by
Prof.N.R.Jadhav
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION, Mumbai
Mahavir Polytechnic, Nashik.(0530)
DEPARTMENT OF COMPUTER ENGINEERING
2020-2021
1
MAHAVIR POLYTECHNIC, NASHIK.
DEPARTMENT OF COMPUTER ENGINEERING
CERTIFICATE
This is to certify that the Micro Project Report on “Creating Simple Calculator
using Function in python” is satisfactorily completed and submitted in the partial
fulfillment of the requirement for Subject "Programming with Python ” in Third
Year Computer Engineering in Semester Sixth of Academic Year 2020-2021.
By
Madhuri Nikam.
Aditi Jagtap.
Snehal Pawar.
Rajeshwari Purkar.
PROF. N.R.Jadhav PROF. A.D.SONAWANE PROF.S.V.SAGRE
(Project Guide) (H.O.D.) (Principal)
2
ACKNOWLEDGEMENT
I take this opportunity to thank all those who have contributed in successful
completion of this Micro Project work. I would like to express my sincere thanks to
my Project Guided by Prof.N.R.Jadhav who has encouraged me to work on this
project and guided me whenever required.
We also would like to express our gratitude to our H.O.D. Prof. A.D.SONAWANE for
giving us opportunities to undertake this project work at Mahavir Polytechnic,
Nashik.
We are extremely grateful to our Principal Prof. S.V.SAGRE for his constant
inspiration and keen interest to make the project and presentation absolutely
flawless.
At the last but not the least we would like to thank our Teaching staff member,
Workshop staff member, Friends and family member for their timely co-operation
and help.
Miss. MADHURI D. NIKAM.
Enrollment No. 1805300093
Miss. SNEHAL S. PAWAR.
Enrollment No. 1805300088S
Miss. ADITI D. JAGTAP.
Enrollment No. 1805300084
Miss. RAJESHWARI S. PURKAR.
Enrollment No. 1805300089
T.Y.C.O
Academic Year 2020-2021
Sixth Semester
3
INDEX
SR. NO. TOPIC PAGE NO.
1 INTRODUCTION 5
2 REQUIREMENT ANALYSIS
2.1 Hardware Requirements 6
2.2 Software Requirements
3 PROJECT PLANNING
3.1 Schedule Estimation(s/w & h/w) 7
3.2 Project Plan
SYSTEM IMPLEMENTATION
4
8
Proposed Methodology &
4.1
Implementations
5 Program Code
9
5.1 Output
6 ADVANTAGES
6.1 APPLICATIONS AND FUTURE SCOPE
10
6.2 CONCLUSION
6.3 REFERENCES
4
INTRODUCTION
Python is a popular programming language. It was created by Guido van
Rossum, and released in 1991.It is used for:
1)web development (server-side),
2)software development,
3)mathematics,
4)system scripting.
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and modify files.
Python can be used to handle big data and perform complex mathematics.
Python can be used for rapid prototyping, or for production-ready software
development.
A function is a block of code which only runs when it is called.You can pass
data, known as parameters, into a function.A function can return data as a
result.
Creating a Function
In Python a function is defined using the def keyword:
Example
def my_function():
print("Hello from a function")
5
Resources Required
(major resources like raw material, tools, software etc.)
S. Name of
Specifications Qty Remarks
No. Resource/material
1 Software Python,Sublime Text 1
2 Ram 1 GB 1
3 Hard disk 40 GB 1
4 Processor Pentium 1
5 Operating system Windows 7 1
Hardware Requirements:-
I. Ram = 1GB
II. Hard Disk =40GB
III. Processor = Pentium
Software Requirements:-
I. Python , Sublime Text
II. Windows 7
III.
6
Project Planning
Action Plan :- (Sequence and time required for major activities for 8 Weeks)
Name of
Sr. Planned Planned
Details of activity Responsible
No. Start date Finish date
Team Members
Search micro project
01-04-2021 01-04-2021
name
Final micro project name 02-04-2021 04-04-2021
Search information
10-04-2021 25-04-2021
about our project
Study about Micro
05-05-2021 10-05-2021
project Information Madhuri Nikam.
Coding 12-05-2021 19-05-2021 Aditi Jagtap.
Testing 20-05-2021 25-05-2021 Snehal Pawar.
Power point Rajeshwari Purkar.
presentation of micro 27-05-2021 01-06-2021
project
07-06- 07-06-
Report of micro project
2021 2021
Submission of report 08/06/202
13/06/2021
1
7
SYSTEM IMPLEMENTATION
In this project we are making simple calculator using python. In this
application Are generally used in store and mathematical problem solving
and this project work also focused principally on number and arithmetic
operation.
This project will help you to easy calculating and tedious mathematical
problem, easy to retrieval of error. Using the project we improve the speed
of calculating operation and they may help also Save our time, during the
calculation, solving the problem step by step.
A function is a block of organized, reusable code that is used to perform a
single, related action. Functions provide better modularity for your
application and a high degree of code reusing.
8
Program Code
#Python Program to Make a Simple Calculator
def multiplication(num1, num2):
return num1 * num2
def addition(num1, num2):
return num1 + num2
def subtraction(num1, num2):
return num1 - num2
def divide(num1, num2):
return num1 / num2
value1 = int(input("Enter 1st number: "))
value2 = int(input("Enter 2nd number: "))
print("Select operation 1-Division, 2-Multiplication, 3-Addition, 4-Subtraction")
operation = int(input("Choose operation 1/2/3/4: "))
if operation == 1:
print(value1, "/", value2, "=", divide(value1, value2))
elif operation == 2:
print(value1, "*", value2, "=", multiplication(value1, value2))
elif operation == 3:
print(value1, "+", value2, "=", addition(value1, value2))
elif operation == 4:
print(value1, "-", value2, "=", subtraction(value1, value2))
else:
print("Enter correct operation")
9
SCREEN SHOTSOUTPUT
ADVANTAGES
1. Calculator can solve complicated problems quickly & in an efficient manner.
2. Calculator gives more accurate results then counting manually.
3. Calculator has all formulas for counting process & makes the counting
process easier.
4. Avoids the boredom in counting process.
5. It can calculate cash that has been spent against the remaining money.
6. It makes the counting process becomes faster than usual.
7. Useful to covert the units of measurement.
APPLICATIONS AND FUTURE SCOPE
1. It is used in mathematic to calculate the answer.
2. It is used in arithmetic operation.
3. It is used in office, collages, shops, etc.
4. It is used in mobiles, computers, etc.
CONCLUSION
We have successfully completed it. In our project we have create a simple
calculator in python. In this project we have developed a calculator and
performed a theoretical analysis of the algorithm and experimented on their
implementation.
10
REFERENCES
1) https://en.wikipedia.org/wiki/Python_(programming_language) - From this
website we got the information about Python Programming.
2) https://realpython.com/run-python-scripts/ - From this website we learn how to
run python program.
3) Python Programming – Rao, K.Nageswara, Shaikh Akbar – From this book we learn
the basic syntax of Python programming.
11