Sanjivani K. B. P. Polytechnic: Under The Guidance of

Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

SANJIVANI K. B. P.

POLYTECHNIC
KOPERGAON – 423603, DIST: AHMEDNAGAR
2023-2024

A
PROJECT REPORT
ON

“SIMPLE CALCULATOR SYSTEM”


SUBMITTED BY

Mst. Surade Omkar Shantaram[205]

Under the guidance of

Prof. S.B.JADHAV

DEPARTMENT OF COMPUTER TECHNOLOGY

SANJIVANI K. B. P. POLYTECHNIC
KOPERGAON, AHMEDNAGAR-423603
2023-2024

1
Sanjivani Rural Education Society’s
SANJIVANI K. B. P. POLYTECHNIC
DEPARTMENT OF COMPUTER TECHNOLOGY
2023-2024

CERTIFICATE
This is to certify that the Project report entitled

“SIMPLE CALCULATOR SYSTEM”

Submitted By

Mst. Surade Omkar Shantaram[205]

Under our supervision and guidance for partial fulfillment of the requirement for Diploma in Computer
Technology affiliated to Maharashtra State Board of Technical Education, Mumbai For academic year
2023- 2024

Prof.S.B.JADHAV
(Project guide) Prof. G.N.Jorvekar
(HOD)

2
ACKNOWLEDGEMENT
First and the foremost we, express my deep sense of gratitude, sincere and deep
sense of appreciation to project Guide Prof.S.B.JADHAV, Department of Computer
Technology, Sanjivani K.B.P. Polytechnic Kopargaon. Your availability at any time throughout
the year, valuable guidance, option, view, comments, critics, encouragement, and support
tremendously boosted this project work.
Lots of thanks to Prof. G.N. Jorvekar, head of Department Computer Technology
Department, for providing us the best support we ever had. We like to express my sincere
gratitude to Prof.A.R. Mirikar, principal Sanjivani K.B.P. Polytechnic, Kopargaon for
providing a great platform to complete the project within the schedule time.
We are also thankful to all the faculty members, computer Technology Department,
Sanjivani K.B.P. polytechnic, Kopargaon for giving comments for Improvement of work,
encouragement and help during completion of the project.
Last but not the least, we should say thanks from our bottom of heart to my Family
and Friends for their never ending love, help, and support in so many ways through all this
time.
Thank you so much.

Mst. Surade Omkar Shantaram[205]

3
INDEX

SR.NO. TITLE PAGE

NO.
INTRODUCTION
1. 6

TECHNOLOGIES & TOOLS


2. 7

FLOWCHART OF PROGRAM
3. 8

PROGRAM
4. 9

OUTPUT
5. 11

CONCLUSION
6. 15

REFERENCE
7. 15

4
Micro-Project Proposal
Title: SIMPLE CALCULATOR SYSTEM

1.0 Aim/Benefits of the Micro-Project:


The aim of this course is to help the student to attain the following industry identified. competency
through various teaching learning experiences:
 Develop general purpose programming using python to solve problems

2.0 Course Outcomes Addressed:


a) Display message on screen using Python script on IDE
b ) Develop python program to demonstrate use of Operators
c) Perform operations on data structures in Python.
d) Develop functions for given problem.
e) Design classes for given problem,
f) Handle exceptions

3.0 Proposed Methodology:

• Discussion about the topic guide and among the group members.
• Literature survey.
• Submission of project proposal.
• Information collection.
• Analysis of data.
• Compilation of content.
• Representation.
• Editing and revising the content.
• Report preparation

4.0.Abstract

Python is powerful programming language. It has efficient high-level data structures and a simple
but effective approach to object-oriented programming. Python code is simple, short, readable,
intuitive, and powerful, and thus it is effective for introducing computing and problem solving to
beginners. It's elegant syntax and dynamic typing, together with its interpreted nature, make it an
ideal language for scripting and rapid application development in many areas on most platforms.

5
1. INTRODUCTION

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is


designed to be highly readable. It uses English keywords frequently where as other languages use
punctuation, and it has fewer syntactical constructions than other languages.
 Python is Interpreted − Python is processed at runtime by the interpreter. You do not need to
compile your program before executing it. This is similar to PERL and PHP.
 Python is Interactive − You can actually sit at a Python prompt and interact with the interpreter
directly to write your programs.
 Python is Object-Oriented − Python supports Object-Oriented style or technique of programming
that encapsulates code within objects.
 Python is a Beginner's Language − Python is a great language for the beginner-level programmers
and supports the development of a wide range of applications from simple text processing to WWW
browsers to games.

History of Python
Python was developed by Guido van Rossum in the late eighties and early nineties at the National
Research Institute for Mathematics and Computer Science in the Netherlands.
Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68,
SmallTalk, and Unix shell and other scripting languages.
Python is copyrighted. Like Perl, Python source code is now available under the GNU General
Public License (GPL).
Python is now maintained by a core development team at the institute, although Guido van Rossum
still holds a vital role in directing its progress.

Python's features
 Easy-to-learn − Python has few keywords, simple structure, and a clearly defined syntax. This
allows the student to pick up the language quickly. 6
 Easy-to-read − Python code is more clearly defined and visible to the eyes.
 Easy-to-maintain − Python's source code is fairly easy-tomaintain.
 A broad standard library − Python's bulk of the library is very portable and cross-platform
compatible on UNIX, Windows, and Macintosh.
 Interactive Mode − Python has support for an interactive mode which allows interactive testing
and debugging of snippets of code.
 Portable − Python can run on a wide variety of hardware platforms and has the same interface on
all platforms.
 Extendable − You can add low-level modules to the Python interpreter. These modules enable
programmers to add to or customize their tools to be more efficient.
 Databases − Python provides interfaces to all major commercial databases.
 GUI Programming − Python supports GUI applications that can be created and ported to many
system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window
system of Unix.
 Scalable − Python provides a better structure and support for large programs than shell scripting.

6
2. TECHNOLOGIES & TOOLS

 Software Used:

i. Visual Studio
ii. Languages Used: Python
iii. Python Extension

 Hardware Used:

-CPU configuration
-Intel
-RAM 8 GB DDR2

 Operating System:

-Windows 10

 Future Scope:

i. This project will help the fast calculation of any two number.
ii. This project enable to calculate the large number given by user.
iii. Project will enable to see report regarding product and category.
iv. It is easy to maintain in future prospect.

 Characterstic Of The Proposed System:

i. Easiness in modification of data.


ii. User friendly: The proposed system is user friendly.
iii. Reports are easily generated: Reports can be easily generated in a proposed system. So any type
of reports can be generated in a proposed system, which helps the managers in a
decisions making activity

7
3. FLOWCHART OF PROGRAM

8
4. PROGRAM

CODE:-

class Calculator():
def addition(self):
print("Addition is:",a + b)
def subtraction(self):
print("Subtraction is:",a-b)
def multiplication(self):
print("Multiplication is:",a*b)
def division(self):
print("Division is:",a/b)
def modulus(self):
print("Remainder is:",a%b)
def floordivision(self):
print("FloorDivison is:",a//b)
def exponent(self):
print("Exponent is:",a**b)
a=float(input("Enter first number:"))
b=float(input("Enter second number:"))
obj = Calculator()
choice = ('1. Add \n2. Sub \n3. Multiply \n4. Divide \n5. Modulus \n6. Floordivision \n7. Exponent')
print(choice)
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())
elif choice==5:
print(obj.modulus())
elif choice==6:
print(obj.floordivision())
elif choice==7:
print(obj.exponent())
else:
print(" Invalid choice")

9
5. OUTPUT

10
11
12
13
6. 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.

7. REFERENCE

 https://www.w3schools.com/python/
 https://www.tutorialspoint.com/python/.py/
 https://www.codingninjas.com/
 https://www.zapmeta.co.in/

14

You might also like