PYTHON
PYTHON
431401
A MICRO-PROJECT REPORT ON
IN PARTIAL FULFILMENT OF
2 Literature Review/information
collection
3 Literature Review/information
collection
4 Analysis of Data and
representation
5 Completion of the Target as per
project proposal
6 Report Preparation
Dated Signature…………………………………………………………
Micro-Project Report
Develop an application on Scientific Calculator
1.0 Aim of the Micro project
It is a scientific. it is used the math functions easily. In this application two types of calculators are
there 1. standard calculator 2. scientific calculator
First one is very simple to solve arithmetic operations and also convert the result into either integer or
float pointing number and these second one is scientific notation type math function are there like sin,
cos, tan, log etc. it is very useful to solve the odd math calculation in less time and in simple manner
and also easily to use.
Especially I used menu bar with items one is standard and second one is scientific after clicking the
standard item. It will show the standard calculator after clicking the scientific item it will shows the
scientific calculator with standard also.
By using Tkinter in python I developed this application it is also converted into.exe file by using
pyinstaller the it is now desktop application.
2.0Rationale:
A calculator can be a very powerful tool in the classroom. It can help students solve a
problem, but may cause the students to became too dependent on the calculator; this may increase
problems. Therefore, mathematics teachers are torn between mix opinions and views about calculators.
Calculators are viewed to be a beneficial tool but can also be seen as harmful device. Some questions
are raised about the use of calculators in the classroom, which will be examined throughout the
Literature Review: The evolution of calculators and which model is more common to be used,
calculator polices teachers enforce, the benefits and risks of students using calculators, and the
professional opinion about calculators. These questions will be answered and synthesized from
multiple research findings which comes with a variety of perspectives and main points.
The use of calculators come with a variety of benefits for the students. Calculators
allow students to think more conceptually versus computational. Conceptual thinking allows students
to think “outside the box”. Hembree and Dessart (1986) states an example when students experience a
computational advantage and become confident in their mathematical skills, “a simple four-function
calculator will allow students to use whatever operation is appropriate in a problem, regardless of a
4
whether they are confident of their own skill at carrying out that operation” (as cited in McCauliff,
2003, p.3). Students can spend less time computing a problem, and spend more time to reflect and
analyze the answer.
Another benefit is that calculators allow students to become more confident in their
mathematic skills. Trouche (2005) from the University of Montpellier II in France reveals calculators
“increase the confidence and enthusiasm associated with the use of the tool” (as cite in Guin, Ruthven
& Touché, p.16). When students compute any mathematical problem into a calculator, they are sure
that their answer is correct, or when their answer they computed on paper matches the answer in the
calculator they are reassuring their math abilities. In result, their confidence in their math skills will be
increased. This argument is also supported by Erin McCauliff when she explains that researchers have
discovered that students who used calculators had more confidence and a better attitude towards math
than students who did not use calculators (2003, p.4). Therefore, students gain confidence when they
have the privilege of using calculators.
6
Analysis of the collecteddata &
Prem Bharose,vishal
3. to generate useful 21-02-2023 28-02-2023
Sarode,Syed Mudabbir
information from it
Prepare required
Prem Bharose,vishal
detailed plan for execution of 28-02-2023 14-03-2023
4. Sarode,Syed Mudabbir
the work.
Present generatedinformation
Prem Bharose,vishal
visually in the form of 14-03-2023 21-03-2023
5. Sarode,Syed Mudabbir
appropriatecoding
Prem Bharose,vishal
6. Use of equipment’s 21-03-2023 28-03-2023
Sarode,Syed Mudabbir
Prem Bharose,vishal
7. Prepare the Micro-projectreport 28-03-2023 04-04-2023
Sarode,Syed Mudabbir
Prem Bharose,vishal
04-04-2023 04-04-2023
8. Prepare presentation Sarode,Syed Mudabbir
Sr. Qty
Name of Resource Specification Remark
No. /Units
if secondnum == '.':
if secondnum in firstnum:
return
self.current = firstnum + secondnum
self.display(self.current)
def sum_of_total(self):
self.result = True
self.current = float(self.current)
if self.check_sum == True:
self.valid_function()
else:
self.total = float(txtDisplay.get())
def display(self, value):
txtDisplay.delete(0, END)
txtDisplay.insert(0, value)
def valid_function(self):
if self.op == "add":
self.total += self.current
if self.op == "sub":
self.total -= self.current
if self.op == "multi":
self.total *= self.current
if self.op == "divide":
self.total /= self.current
if self.op == "mod":
self.total %= self.current
self.input_value = True
self.check_sum = False
self.display(self.total)
def Clear_Entry(self):
self.result = False
self.current = "0"
self.display(0)
self.input_value = True
def All_Clear_Entry(self):
self.Clear_Entry()
self.total = 0
def pi(self):
self.result = False
self.current = math.pi
self.display(self.current)
def tau(self):
self.result = False
self.current = math.tau
self.display(self.current)
def e(self):
self.result = False
self.current = math.e
self.display(self.current)
def mathPM(self):
self.result = False
self.current = -(float(txtDisplay.get()))
self.display(self.current)
def squared(self):
self.result = False
self.current = math.sqrt(float(txtDisplay.get()))
self.display(self.current)
def cos(self):
self.result = False
self.current = math.cos(math.radians(float(txtDisplay.get())))
self.display(self.current)
def cosh(self):
self.result = False
self.current = math.cosh(math.radians(float(txtDisplay.get())))
self.display(self.current)
9
def tan(self):
self.result = False
self.current = math.tan(math.radians(float(txtDisplay.get())))
self.display(self.current)
def tanh(self):
self.result = False
self.current = math.tanh(math.radians(float(txtDisplay.get())))
self.display(self.current)
def sin(self):
self.result = False
self.current = math.sin(math.radians(float(txtDisplay.get())))
self.display(self.current)
def sinh(self):
self.result = False
self.current = math.sinh(math.radians(float(txtDisplay.get())))
self.display(self.current)
def log(self):
self.result = False
self.current = math.log(float(txtDisplay.get()))
self.display(self.current)
def exp(self):
self.result = False
self.current = math.exp(float(txtDisplay.get()))
self.display(self.current)
def acosh(self):
self.result = False
self.current = math.acosh(float(txtDisplay.get()))
self.display(self.current)
def asinh(self):
self.result = False
self.current = math.asinh(float(txtDisplay.get()))
self.display(self.current)
def expm1(self):
self.result = False
self.current = math.expm1(float(txtDisplay.get()))
self.display(self.current)
def lgamma(self):
self.result = False
self.current = math.lgamma(float(txtDisplay.get()))
self.display(self.current)
10
def degrees(self):
self.result = False
self.current = math.degrees(float(txtDisplay.get()))
self.display(self.current)
def log2(self):
self.result = False
self.current = math.log2(float(txtDisplay.get()))
self.display(self.current)
def log10(self):
self.result = False
self.current = math.log10(float(txtDisplay.get()))
self.display(self.current)
def log1p(self):
self.result = False
self.current = math.log1p(float(txtDisplay.get()))
self.display(self.current)
added_value = Calc()
numberpad = "789456123"
i=0
btn = []
for j in range(2, 5):
for k in range(3):
btn.append(Button(calc, width=6, height=2,
bg='black', fg='white',
font=('Helvetica', 20, 'bold'),
bd=4, text=numberpad[i]))
btn[i].grid(row=j, column=k, pady=1)
btn[i]["command"] = lambda x=numberpad[i]: added_value.numberEnter(x)
i += 1
# ROW 2 :
btn2Pi = Button(calc, text="2pi", width=6,
height=2, bg='black', fg='white',
font=('Helvetica', 20, 'bold'),
bd=4, command=added_value.tau
).grid(row=2, column=4, pady=1)
# ROW 3 :
btnlog = Button(calc, text="log", width=6,
height=2, bg='black', fg='white',
font=('Helvetica', 20, 'bold'),
bd=4, command=added_value.log
).grid(row=3, column=4, pady=1)
# ROW 4 :
btnlog10 = Button(calc, text="log10", width=6,
height=2, bg='black', fg='white',
font=('Helvetica', 20, 'bold'),
bd=4, command=added_value.log10
).grid(row=4, column=4, pady=1)
def iExit():
iExit = tkinter.messagebox.askyesno("Scientific Calculator",
"Do you want to exit ?")
if iExit > 0:
root.destroy()
return
def Scientific():
root.resizable(width=False, height=False)
root.geometry("944x568+0+0")
15
def Standard():
root.resizable(width=False, height=False)
root.geometry("480x568+0+0")
menubar = Menu(calc)
# ManuBar 1 :
filemenu = Menu(menubar, tearoff=0)
menubar.add_cascade(label='File', menu=filemenu)
filemenu.add_command(label="Standard", command=Standard)
filemenu.add_command(label="Scientific", command=Scientific)
filemenu.add_separator()
filemenu.add_command(label="Exit", command=iExit)
# ManuBar 2 :
editmenu = Menu(menubar, tearoff=0)
menubar.add_cascade(label='Edit', menu=editmenu)
editmenu.add_command(label="Cut")
editmenu.add_command(label="Copy")
editmenu.add_separator()
editmenu.add_command(label="Paste")
root.config(menu=menubar)
root.mainloop()
Output:
16
8.0 Skills Developed /learning out of this Micro-Project
Scientific calculators are used widely in situations that require quick access to certain
mathematical functions, especially those that were once looked up in mathematical tables, such as
trigonometric functions or logarithms. They are also used for calculations of very large or very small
numbers, as in some aspects of astronomy, physics, and chemistry. They are very often required for
math classes from the junior high school level through college, and are generally either permitted or
required on many standardized tests covering math and science subjects; as a result, many are sold
into educational markets to cover this demand, and some high-end models include features making it
easier to translate a problem on a textbook page into calculator input, e.g. by providing a method to
enter an entire problem in as it is written on the page using simple formatting tools.
17
They are very often required for math classes from the junior high school level through
college, and are generally either permitted or required on many standardized tests covering math and
science subjects; as a result, many are sold into educational markets to cover this demand, and some
high-end models include features making it easier to translate a problem on a textbook page into
calculator input, e.g. by providing a method to enter an entire problem in as it is written on the page
using simple formatting tools.
They are very often required for math classes from the junior high school level through college, and
are generally either permitted or required on many standardized tests covering math and science
subjects; as a result, many are sold into educational markets to cover this demand, and some high-end
models include features making it easier to translate a problem on a textbook page into calculator
input, e.g. by providing a method to enter an entire problem in as it is written on the page using
simple formatting tools.
Bibliography: -
11. Web references: -
https://codewithcurious.com/projects/scientific-calculator-using-python/
https://www.geeksforgeeks.org/scientific-gui-calculator-using-tkinter-in-python/
18