0% found this document useful (0 votes)
6 views

Python Microprojrct Sem 6th

The document describes a calculator application created using Python. It provides details on the rationale, aim, literature review, code, and output of the project. The application allows users to perform basic mathematical operations and calculations through a graphical user interface.

Uploaded by

Rudraa Arote
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Python Microprojrct Sem 6th

The document describes a calculator application created using Python. It provides details on the rationale, aim, literature review, code, and output of the project. The application allows users to perform basic mathematical operations and calculations through a graphical user interface.

Uploaded by

Rudraa Arote
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

A

MICRO-PROJECT REPORT
On

“Calculator using python”


Has been submitted by
Mr.Arote Amit Ananda
Mr.Malunjkar Niraj Shriram
Miss.Malunjakar Rutuja Vijay
Miss.Awari Samrdhi Sampat

Under The Guidance of


Prof.M.G.Desai

GENERAL SCIENCE AND HUMANITY DEPARTMENT

AKOLE TALUKA EDUCATION SOCIETY’S

FACULTY OF POLYTECHNIC, AKOLE

ACADEMIC YEAR – 2023-24


CERTIFICATE
“Online Voting System”
This is to certify that the Micro-Project Report entitled

has been Submitted by


Mr.Arote Amit Ananda
Mr.Malunjkar Niraj Shriram
Miss.Malunjakar Rutuja Vijay
Miss.Awari Samrdhi Sampat

As a partial fulfillment of the prescribed syllabus of Subject


Programming with python (Micro-Project) of Third Year Diploma in
Computer Engineering

Prof.M.G.Desai Prof. S.B. Deshmukh


Project Guide Head Of Department

Prof .Dr.R.D.Palhade
Principal
ACKNOWLEDGEMENT

It is privilege to acknowledge with deep sense of gratitude to our seminar guide


Prof.M.G.Desai for their valuable suggestions throughout our course of study.
We express our gratitude to Head Of Department Prof. S.B. Deshmukh for his
kind help & co-operation.
We also take this opportunity to thank all our colleagues who backed us interest by
giving useful suggestions & all possible help without whose help & moral support
it would not has been possible to complete this report.

By –

Mr.Arote Amit Ananda


Mr. Malunjkar Niraj Shriram
Miss. Malunjakar Rutuja Vijay
Miss.Awari Samrdhi Sampat

Under The Guidance of


Prof.M.G.Desai
Index

Sr.No Name
1) RATIONALE
2) AIM/BENEFITS OF THE MICRO
3) LITERATURE REVIEW

4) CODE &OUTPUT
5) CONCLUSION
Rationale:-
Calculator is very useful for calculating arithmetic operations. By creating this
calculator we are able to solve those operations easily.

Aim/Benefits of the Micro:-

Project The main Aim of this micro project is to Develop Calculator


Application Using Python.

Literature Review

Calculators perform the same functions as their standard electronic calculator


counterparts, but they also have myriad other features available. There are three
main categories of calculators on the market today: business, basic, and
scientific.It’s likely that you have already used a basic calculator in your high
school math classes, and you may have even used a business or graphing
calculator in an economics or business statistics course.The scientific
calculator, however,is the only one that can handle certain functions in fields
such as trigonometry,physics,chemistry, and engineering.A scientific calculator
has additional features that allow you to work with exponents and logs, which
require more memory in order to perform functions for the best results.While
you can also do basic calculations such as addition, subtraction, multiplication,
and division,that barely scratches the surface of the types of equations this
calculator can handle.
Code of the Micro-Projects:-
import tkinter as tk
import tkinter.messagebox
from tkinter.constants import SUNKE
window = tk.Tk()
window.title('Calculator-GeeksForGeeks')
frame = tk.Frame(master=window, bg="skyblue", padx=10)
frame.pack()
entry = tk.Entry(master=frame, relief=SUNKEN, borderwidth=3, width=30)
entry.grid(row=0, column=0, columnspan=3, ipady=2, pady=2)
def myclick(number):
entry.insert(tk.END, number)
def equal():
try:
y = str(eval(entry.get()))
entry.delete(0, tk.END)
entry.insert(0, y)
except:
tkinter.messagebox.showinfo("Error", "Syntax Error")
def clear():
entry.delete(0, tk.END)
button_1 = tk.Button(master=frame, text='1', padx=15,pady=5, width=3,
command=lambda: myclick(1)) button_1.grid(row=1, column=0, pady=2)
button_2 = tk.Button(master=frame, text='2', padx=15,pady=5, width=3,
command=lambda: myclick(2)) button_2.grid(row=1, column=1, pady=2)
button_3 = tk.Button(master=frame, text='3', padx=15,pady=5, width=3, command=lambda:
myclick(3)) button_3.grid(row=1, column=2, pady=2)
button_4 = tk.Button(master=frame, text='4', padx=15,pady=5, width=3, command=lambda:
myclick(4))button_4.grid(row=2, column=0, pady=2)
button_5 = tk.Button(master=frame, text='5', padx=15,pady=5, width=3, command=lambda:
myclick(5))button_5.grid(row=2, column=1, pady=2)
button_6 = tk.Button(master=frame, text='6', padx=15,pady=5, width=3, command=lambda:
myclick(6))button_6.grid(row=2, column=2, pady=2)
button_7 = tk.Button(master=frame, text='7', padx=15,pady=5, width=3, command=lambda:
myclick(7))button_7.grid(row=3, column=0, pady=2)
button_8 = tk.Button(master=frame, text='8', padx=15,pady=5, width=3, command=lambda:
myclick(8))button_8.grid(row=3, column=1, pady=2)
button_9 = tk.Button(master=frame, text='9', padx=1,pady=5, width=3, command=lambda:
myclick(9))button_9.grid(row=3, column=2, pady=2)
button_0 = tk.Button(master=frame, text='0', padx=15,pady=5, width=3, command=lambda:
myclick(0)) button_0.grid(row=4, column=1, pady=2)
button_add = tk.Button(master=frame, text="+", padx=15,pady=5, width=3, command=lambda:
myclick('+'))button_add.grid(row=5, column=0, pady=2)
button_subtract = tk.Button(master=frame, text="-", padx=15, pady=5, width=3, command=lambda:
myclick('-')) button_subtract.grid(row=5, column=1, pady=2)
button_multiply = tk.Button(master=frame, text="", padx=15, pady=5, width=3, command=lambda:
myclick('')) button_multiply.grid(row=5, column=2, pady=2)
button_div = tk.Button(master=frame, text="/", padx=15,pady=5, width=3, command=lambda:
myclick('/')) button_div.grid(row=6, column=0, pady=2)
button_clear = tk.Button(master=frame, text="clear", padx=15, pady=5, width=12, command=clear)
button_clear.grid(row=6, column=1, columnspan=2, pady=2)
button_equal = tk.Button(master=frame, text="=", padx=15, pady=5, width=9, command=equal)
button_equal.grid(row=7, column=0, columnspan=3, pady=2)
window.mainloop()
Output of the Project:
Conclusion

1. It can be used to find square root, square logarithmic operations.


2. It can be also used to perform simple mathematical operations like
Addition, Subtraction, Multiplication, Division etc.
3. Perform various arithmetic and trigonometric operations
4. Fast and correct calculations.

You might also like