Python microproject
management (Government Polytechnic, Nagpur)
Scan to open on Studocu
Studocu is not sponsored or endorsed by any college or university
A
PROJECT REPORT
ON
“Simple Calculator System’’
SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE AWARD
OF
DIPLOMA IN
( COMPUTER ENGINEERING )
SUBMITTED TO
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI
SUBMITTED BY
Name of Student Roll Number.
1] Bhor Pranav Balu 07
GUIED BY: (Ms.Khandekr.P.P)
SAMARTH POLYTECHNIC, BELHE
CERTIFICATE
This is to certify that the project report entitled “ Simple Calculator
System’’ Was successfully completed by Student of third semester Diploma in
Computer engineering.
groups members.
Bhor Pranav Balu
in partial fulfillment of the requirements for the award of the Diploma in
Computer engineering and submitted to the Department of Computer of
Samarth Polytechnic, Belhe work carried out during a period for the academic
year 2024-25 as per curriculum .
Ms.Khandekr.P.P. Prof. Nawale S.K. Prof. Kapile A.S.
(Subject Teacher) (H.O.D) (Principal)
ACKNOWLEDGMENT
This project is done as a semester project, as a part course titled
“ Simple Calculator System’’
am really thankful to our course the Principal Ms.Khandekr.P.P and the
HOD Prof. Nawale S.K. Samarth Polytechnic, Belhe for his invaluable guidance
and assistance, without which the accomplishment of the task would havenever
been possible.
I also thanks Prof. Kedar A.L. for giving this opportunity to explore into
he real world and realize the interrelation without which a Project can never
progress. In this present project I have chosen the topic “ Simple Calculator
System’’
I am also thankful to parents, friend and all staff of Computer Engineering
Department, for providing us relevant information and necessary clarifications, and
great support.
All Group Members.
Bhor Pranav Balu
ANNEXURE II
Evaluation Sheet for Micro Project
Academic Year :- 2024-2025 Name of Faculty: Ms.Khandekr.P.P
Course :- Computer Enginnering
Course Code :- 22616 Semester :- VI
Title of Project :- “ Simple Calculator System’’
Cos addressed by Miroproject :-
. Bhor Pranav Balu
Major Learning Outcomes achieved by students by doing the project :-
a) Practical
Outcomes………………………………………………………………………………………......
…………………………………………………………………………………………………………………
b) Unit Outcomes in Cognitive
domain…………………………………………………………………..
……………………………………………………………………………………………………
……………………………………………………………………………………………………………………
c) Outcomes in Affective
Domain…………………………………………………………………………..
……………………………………………………………………………………………………
………………………………………………………………………………………………………………………
…..
Comments /suggestions about team work/leadership/inter-personal communication (if any)
……………………………………………………………………………………………………………………
……………………………………………………………………………………………………………………
Marks out of Marks out of
6 for 4 for
Roll Student Name performance performance Total Out
No. in group in oral / of 10
activity presentation
(D5 Col.8) (D5 Col.9)
1.
Bhor Pranav Balu
Ms.Khandekr.P.P
(Name & Signature of Faculty)
INDEX
Sr. Title Page No .
1. Abstract 2
2. Introduction 3
3. Literature Survey 6
4. ER Diagram 7
5. Implementation 8
6. Output 10
7. Conclusions 12
8. References 13
1|P a g e
1. Abstract
The simple calculator is a system software which allows us to perform simple
mathematical operations such as addition, substraction , multiplication,
division etc. To develop this system we have used the concept of class and
object first we defined the class calculator and defined the various function
inside this class for various mathematical operations and each function is
different from each other. After that we prompted user to provide the input for
two numbers. And at the end of the program we have created the object of
calculator class and called all the function defined inside the class one after one
for different tasks as per their respective operations.
2|P a g e
2. Introduction
Python is a widely used general-purpose, high level programming language. It
was created by Guido van Rossum in 1991 and further developed by the Python
Software Foundation. It was designed with an emphasis on code readability,
and its syntax allows programmers to express their concepts in fewer lines of
code. Python is a programming language that lets you work quickly and
integrate systems more efficiently. Python is a powerful general-purpose
programming language. It is used to develop web applications, data science,
creating software prototypes and so on. Fortunately for beginners, Python has
simple easy-to-use syntax. This makes Python an excellent language to learn to
program for beginners.
A class is a code template for creating objects. Objects have member variables
and have behaviour associated with them. In python a class is created by the
keyword class.An object is created using the constructor of the class. This object
will then be called the instance of the class.
In Python we create instances in the following manner
Instance = class(arguments)
A class by itself is of no use unless there is some functionality associated with
it. Functionalities are defined by setting attributes, which act as containers for
data and functions related to those attributes. Those functions are called
methods.
Attributes:
3|P a g e
A class by itself is of no use unless there is some functionality associated with
it. Functionalities are defined by setting attributes, which act as containers for
data and functions related to those attributes. Those functions are called
methods.
You can define the following class with the name Snake. This class will have an
attribute name.
>>> class Snake:
... name = "python" # set an attribute `name` of the class
...
A function object is created with the def statement. Primarily, we want to
evaluate the function objects we create. However, because a function is an
object, it has attributes, and it can be manipulated to a limited extent.
From a syntax point of view, a name followed by ()'s is a function call. You can
think of the ()'s as the "call" operator: they require evaluation of the arguments,
then they apply the function.
name ( arguments )
When we use a function name without ()'s, we are talking about the function
object. There are a number of manipulations that you might want to do with a
function object.
Call The Function. By far, the most common use for a function object is to call
it. When we follow a function name with ()'s, we are calling the function:
4|P a g e
evaluating the arguments, and applying the function. Calling the function is the
most common manipulation.
Alias The Function. This is dangerous, because it can make a program obscure.
However, it can also simplify the evoluation and enhancement of software.
Imagine that the first version of our program had two functions named rollDie
and rollDice.
By using the above concept we have developed the simple calculator system we
have developed this system we have used the concept of class and object first
we defined the class calculator and defined the various function inside this
class for various mathematical operations and each function is different from
each other. After that we prompted user to provide the input for two numbers.
And at the end of the program we have created the object of calculator class and
called all the function defined inside the class one after one for different as per
their respective operations.
5|P a g e
3. Literature Survey
One of my first tasks as a new post-doc was to undertake a systematic
quantitative literature review. We wanted to get a feel for the international &
NZ literature on functional biodiversity in agroecosystems, and this was a bit
daunting for me as I my background is in invasions, not native biodiversity or
agriculture! Luckily, the review method we chose relies on data, not expert
knowledge - we chose the method developed by Griffith University
(https://www.griffith.edu.au/griffith-sciences/school-environment-
science/research/systematicquantitative-literature-review).
It's quite an exhaustive process but the method does a really good job of
catching easily overlooked papers, and provides a reproducible and
transparent method for conducting reviews and meta-analyses. I'm a fan!
The first few steps involve defining your keywords and databases for
undertaking the searches, and designing a way of storing your papers and
extracting the data. Once you've completed the first 10% of your search, though,
you'll need to do a stock-take of the papers that you're picking up and make
sure you haven't missed any key words in your search terms.
It was at this point that I realized two things: a) automating this would save me
a lot of time, and b) there were no existing programs that could do what I
wanted. So, I wrote up some python code to read in all papers, extract the
keywords and write them to a new text file. I then used R to rank them by how
commonly they occurred and graph the results, and added any
commonlyoccurring keywords to my database search strings.
6|P a g e
4. ER Diagram
7|P a g e
5. Implementation
class Calculator:
def addition(self):
print(a + b)
def subtraction(self):
print(a - b)
def multiplication(self):
print(a * b)
def division(self):
print(a / b)
a = int(input("Enter first number:"))
b = int(input("Enter first number:"))
obj = Calculator()
choice = 1
while choice
!= 0:
8|P a g e
print("1. ADDITION") print("2.
SUBTRACTION") print("3.
MULTIPLICATION") print("4.
DIVISION") choice =
int(input("Enter your choice:"))
if choice == 1:
print(obj.addition())
elif choice == 2:
print(obj.subtraction())
elif choice == 3:
print(obj.multiplication())
elif choice == 4:
print(obj.division())
else:
print(“ Invalid choice”)
9|P a g e
6. Output
Enter first number:3
Enter first number:2
1. ADDITION
2. SUBTRACTION
3. MULTIPLICATION
4. DIVISION
Enter your choice:1
5
1. ADDITION
2. SUBTRACTION
3. MULTIPLICATION
4. DIVISION
Enter your choice:2
1
1. ADDITION
2. SUBTRACTION
3. MULTIPLICATION
4. DIVISION
Enter your choice:3
6
10 | P a g e
1. ADDITION
2. SUBTRACTION
3. MULTIPLICATION 4. DIVISION
Enter your choice:4
5
7. Conclusion
We have concluded that we have successfully developed a simple calculator
system which perform the various mathematical operations. We have used
the concept of class and object to implement this system and perform a lot of
customization so that teachers don’t need to change anything. We have
provide the four functions and each function is responsible for their
respective tasks. This project helps to all the user to perform the
mathematical operations very easily.
12 | P a g e
8. References
Books:
1. Python Crash Course
2. Head First Python
3. Learn Python the Hard Way
4. A Byte of Python
Websites:
https://www.w3schools.com/python/
https://www.tutorialspoint.com/python/.py
https://www.codingninjas.com/
https://www.zapmeta.co.in/