A
Project report
On
“Developing Android Application for Simple Calculator"
Submitted to
Amrutvahini Polytechnic, Sangamner
Department: - Information Technology
In partial fulfilment of the requirement for the diploma in
Information Technology
Submitted by
(31)Bhalerao Arjun Himmat (1800800632)
(23)Hase Vaibhav Sudam (1800800617)
(18)Chakor Amol Dilip (1800800610)
Under The Guidance of
Prof. Wawale S. N.
Amrutvahini Polytechnic, Sangamner
(Approved by AICTE, NEW DELHI and affiliated to MSBTE)
2019-2020
Amrutvahini Polytechnic Sangamner,
Department: -Information Technology
Certificate
This is to that the project report entitled,
“Developing Android Application for Simple Calculator"
Is a Benefited Work Carrier Out By,
(31)Bhalerao Arjun Himmat (100800632)
(23)Hase Vaibhav Sudam (1800800617)
(18)Chakor Amol Dilip (1800800610)
In partial fulfilment of the requirement for the diploma in
Information Technology
During the academic year 2019-2020
Prof. Wawale S. N. Prof. Chaudhari N.K
(Project guide) H.O.D. (IT)
Acknowledgement
We have taken efforts in this project. However, it would not have been possible without the kind
support and help of many individuals and organization. We would to kind to extend our sincere
thanks to all of them. First and foremost, we want to thanks Prof. Chaudhari N.K HOD. (IT)
Amrutvahini polytechnic, Sangamner. For giving us an opportunity to work on this project. We
are highly indebted to Prof. Wawale S. N. (Project guide) for his guidance and constant
supervision as well as foe providing Necessary information regarding the project & also for his
support in the Project. We would like to express our gratitude towards our parents & members of
Information Technology department for their kind co-operation and encouragement which help
us in completion of this our thanks and appreciations also go to our colleague in developing the
project and people who have willingly helped us with their abilities.
(31)Bhalerao Arjun Himmat (100800632)
(23)Hase Vaibhav Sudam (1800800617)
(18)Chakor Amol Dilip (1800800610)
CONTENT:
1. Rationale
2. Aim/Benefits of micro-project
3. Course outcomes achieved
4. Literature review
5. Actual Methodology followed
6. Actual Resources used
7. Outputs of the micro-project
8. Skill developed/learning outcome of this micro-project
9. Applications of micro-project
Rationale:
This Calculator app is an application developed for android cells phones and tablets. It enables
the users to perform fundamental mathematical operations such as addition, subtraction,
multiplication and division on their phone. Being installed on phone, it always remains with the
user, helps in daily life calculations and works as a typical android calculator app.
Aim/Benefits of the project:
Developing Android Application for Simple Calculator
Benefits:
Simple calculator project is a mobile application which is developed in Android
platform.
This app is useful for doing simple arithmetic calculations.
It is easy and comfortable to use.
The application gives fast and accurate result.
Course Outcomes:
1. Interpret features of Android Operating System.
2. Create environment for Android and Android development tools.
3. Create rich user interfaces and Android application by using layouts, controls and user
interfaces components.
Literature Review:
Research indicates that teachers believe that technology, especially graphing calculators, would
be helpful in the mathematics classroom. Zembat (2008) found that technology “gave
participants a chance to make a conjecture, an opportunity to try that conjecture with the help of
dynamic features (GSP, spreadsheets) and to evaluate results.” In the same study students were
allowed to use calculators only after they had exhausted their pencil and paper techniques. The
calculator served as a bridge to higher mathematical ideas. Students would hit a dead end with
paper and pencil but the multiple representations afforded by the calculator allowed them to get
further in solving the problems. In a study done in Australia where technology has become a
mandatory element of instruction, teachers were surveyed on the topic of technology use during
instruction. Nearly 68% of respondents felt that it was difficult to get access to computer
laboratories, and over 54% agreed that there were not enough computers available in their
schools. (Goos and Bennison, 2008) Calculators can provide an opportunity to integrate
technology while also being relatively cost effective. A class set of graphing calculators is about
as expensive as a desktop computer but it puts technology into the hands of each student. In the
same study done by Goos and Bennison (2008), it was found that a majority of teachers agreed
that technology makes calculations quicker, helps students understand concepts, enables real-life
applications and allows students to see the link between different representations. They also
found that 46.4% of teachers agreed that technology eroded students’ basic math skills, 24.9%
disagreed and 26.8%
Were undecided.(Goos and Bennison, 2008). It would seem then that while technology has many
benefits, the surveyed teachers doubt that it is beneficial for the retention of basic math skills;
paper and pencil techniques. Graham, Headlam, Sharp, and Watson (2008) did a study on a small
group of students to test how well a teacher met her expectations of graphing calculator use in
her classroom. The teacher set several goals for calculator use which included raising student
confidence and awareness of functionality while working with the calculator, to utilize the
calculator as a display and investigative tool and to answer and check examination questions
using the calculator. “Overall it can be concluded that with this small group of students the
teacher’s aims were generally all met to some extent” (Graham, Headlam, Sharp, and Watson,
2008). It is also worthy to note that the students who were least comfortable using the calculator
were less likely to use it even when checking their answers. Calculators are valuable
instructional tools and are a necessary element in the modern mathematics classroom. Students
need to use calculators frequently in order to develop confidence in the use of the machine. At
what point in the learning of mathematical concepts should students be allowed to use
calculators? Does calculator use have a negative impact on student acquisition of basic
mathematical skills?
Actual Methodology Followed:
1. First we form the three students group for micro project.
2. The finalized topic with mutual discussion under guidance teacher.
3. As topic finalized, we try to search available resources and information related to micro
project title.
4. Next we select suitable resources and information collection from it.
5. Report preparation and finalization of it under guidance of teacher.
6. Then we make our project report in Microsoft word.
7. Then there be presentation of micro project to subject teacher.
8. Report submission be done after necessary correction if given by teacher.
Actual Resources used :
[Link] Name of resources/material Specification Quantit Remark
y
1. Computer System Intel core i5 RAM-4 GB,HDD- 01 -
1TB
2. Eclipse, ADT Plugins and Standard Edition 01 -
Updates
3. Android SDK& JDK - 01 -
Output of the Micro Project:
Introduction:
Mathematics teachers face the challenge of integrating calculator use in their classrooms.
Calculators provide advantages for students when performing calculations and they can provide
teachers with a versatile instructional tool. Students face high-stakes mathematics tests each year
in middle school and must take Regents and college entrance exams during their high school
career. It is important to properly integrate calculator use so that students can derive the full
benefit of familiarity with the instrument while maintaining a high level of student proficiency
with paper and pencil calculations. The goal of my study was to investigate how a student can
best learn with the aid of a calculator. I wanted to find out the proper balance of calculator use
combined with paper and pencil techniques that work together to give students enduring lessons.
Mathematics is a challenging subject for most secondary school students. Students need to pass
several high-stakes tests in math during middle school. It is necessary to pass at least one high
stake math test in high school in order to graduate. Students are allowed to use calculators on
portions of their middle school exam and they are allowed to use graphing calculators on their
Regents exams. The big question that faces mathematics teachers is how to best utilize calculator
use in the class room to promote learning.
My experience with calculators has made me aware of the issue of student over-reliance on them
if they are not monitored for understanding before being allowed to use a calculator. Students
need to develop an understanding of the mathematical calculations of a topic before they are
allowed to use a calculator. As a college student I learned to rely on my calculator to help me
through some pretty challenging math courses. The only way that I learned to use paper and
pencil to solve problems was when my professor disallowed calculator use. I learned 4
Calculus through this monitored approach to calculator use and I still retain the knowledge of
how to do most calculations. On the other hand, I took a Linear Algebra course and calculator
use was not limited so I only learned how to work with this topic through a graphing calculator. I
had to teach myself how to do Linear Algebra with a paper and pencil later because I have to
teach it to my students, but it seems that this method would be adequate for a student who do not
need to pass the subject on to others. I did get a better grade in Linear Algebra than I did in any
of the three Calculus courses that I took. Does a better grade in Linear Algebra mean that
unlimited calculator use is more effective? Does better retention of Calculus mean that limited
calculator use is more effective?
Mathematics teachers seem to discuss this issue quite frequently. I have spoken with a math
teacher who would not allow his students use calculators unless he believed that they had
mastered a new idea. His students did not get calculators very often. I found it interesting that his
students did not do well on the Algebra Regents; his passing rate was less than fifty percent.
Students need to have access to the calculator in order to familiarize themselves with its
operation. I believe that he did his student a disservice by limiting their access too severely. I
student-taught at a large suburban school and students were encouraged to use calculators for
everything, they did not have to understand why it worked, they were just told to push the
buttons and read the answer. The students at this school have a passing rate that is much higher
than fifty percent.
Somewhere in the middle there is the ideal amount of exposure to calculators for students. I
believe it depends on where you are in a series of lessons but the calculator needs to be utilized
both for its aid and to give students an opportunity to learn how to use it. I hope to 5
learn how to maximize calculator integration in my classroom while also ensuring that students
acquire enduring paper and pencil computational abilities.
System Analysis of Calculator
1. Existing System
All we know that, while using simple calculator, we don’t able to get all these features at one
place and mostly rely on manual work. Because of this extensive manual work, there is some
delay and if in rush condition then not able to get the correct results. There sometimes for the
purpose of numerical and statistical numerical, we need to make conversion of results into octal
or hexadecimal format, which again not provided through normal or scientific calculator.
2. Proposed System
It’s the android calculator which will remember your all input, into its memory and
separate all your digits with commas automatically, so that it can be easily identified.
Calculation is sometime boring, but its interactive look and versatile feature will provide
you an exciting calculation environment. Because of touchy nature of your nature, using
its smart editor, you don’t have to write everything. If there’s an error, you can click on
location and rectify it. It will provide all the basic operations in normal mode, but users
can also choose the scientific mode or fixed mode display for their use.
3. Objective of the System
1. Fractional calculations can be easily performed using this android calculator.
2. Users will able to check their previous results in history sections and also able to send it to
memory for further process.
3. Grouping of digits and decimal points will be handle by this android calculator.
4. Users will able to enter digits and operators which will also be displayed over the input panel.
5. Users can make conversions by using conversion unit section to make their calculation on hand.
Codes
XML code
<RelativeLayout xmlns:android="[Link]
xmlns:tools="[Link]
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:id="@+id/txtScreen"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:gravity="right|center_vertical"
android:maxLength="16"
android:padding="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="30sp"
android:typeface="serif" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/txtScreen"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<Button
android:id="@+id/btnSeven"
android:text="7" />
<Button
android:id="@+id/btnEight"
android:text="8" />
<Button
android:id="@+id/btnNine"
android:text="9"/>
<Button
android:id="@+id/btnDivide"
android:text="/"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<Button
android:id="@+id/btnFour"
android:text="4"/>
<Button
android:id="@+id/btnFive"
android:text="5" />
<Button
android:id="@+id/btnSix"
android:text="6" />
<Button
android:id="@+id/btnMultiply"
android:text="*" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<Button
android:id="@+id/btnOne"
android:text="1" />
<Button
android:id="@+id/btnTwo"
android:text="2" />
<Button
android:id="@+id/btnThree"
android:text="3" />
<Button
android:id="@+id/btnSubtract"
android:text="-" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<Button
android:id="@+id/btnDot"
android:text="." />
<Button
android:id="@+id/btnZero"
android:text="0" />
<Button
android:id="@+id/btnClear"
android:text="C" />
<Button
android:id="@+id/btnAdd"
android:text="+" />
</LinearLayout>
<Button
android:id="@+id/btnEqual"
android:text="=" />
</LinearLayout>
</RelativeLayout>
Java code
package calculator
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
public class MainActivity extends AppCompatActivity {
Button button0, button1, button2, button3, button4, button5, button6,
button7, button8, button9, buttonAdd, buttonSub, buttonDivision,
buttonMul, button10, buttonC, buttonEqual;
EditText crunchifyEditText;
float mValueOne, mValueTwo;
boolean crunchifyAddition, mSubtract, crunchifyMultiplication, crunchifyDivision;
@Override
protected void onCreate(Bundle savedInstanceState)
[Link](savedInstanceState);
setContentView([Link].activity_main);
button0 = (Button) findViewById([Link].button0);
button1 = (Button) findViewById([Link].button1);
button2 = (Button) findViewById([Link].button2);
button3 = (Button) findViewById([Link].button3);
button4 = (Button) findViewById([Link].button4);
button5 = (Button) findViewById([Link].button5);
button6 = (Button) findViewById([Link].button6);
button7 = (Button) findViewById([Link].button7);
button8 = (Button) findViewById([Link].button8);
button9 = (Button) findViewById([Link].button9);
button10 = (Button) findViewById([Link].button10);
buttonAdd = (Button) findViewById([Link]);
buttonSub = (Button) findViewById([Link]);
buttonMul = (Button) findViewById([Link]);
buttonDivision = (Button) findViewById([Link]);
buttonC = (Button) findViewById([Link]);
buttonEqual = (Button) findViewById([Link]);
crunchifyEditText = (EditText) findViewById([Link].edt1);
[Link](new [Link]()
@Override
public void onClick(View v)
[Link]([Link]() + "1");
});
[Link](new [Link]()
@Override
public void onClick(View v)
[Link]([Link]() + "2");
}
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "3");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "4");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "5");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "6");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "7");
}
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "8");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "9");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + "0");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
if (crunchifyEditText == null) {
[Link]("");
} else {
mValueOne = [Link]([Link]() + "");
crunchifyAddition = true;
[Link](null);
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
mValueOne = [Link]([Link]() + "");
mSubtract = true;
[Link](null);
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
mValueOne = [Link]([Link]() + "");
crunchifyMultiplication = true;
[Link](null);
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
mValueOne = [Link]([Link]() + "");
crunchifyDivision = true;
[Link](null);
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
mValueTwo = [Link]([Link]() + "");
if (crunchifyAddition == true) {
[Link](mValueOne + mValueTwo + "");
crunchifyAddition = false;
}
if (mSubtract == true) {
[Link](mValueOne - mValueTwo + "");
mSubtract = false;
if (crunchifyMultiplication == true) {
[Link](mValueOne * mValueTwo + "");
crunchifyMultiplication = false;
if (crunchifyDivision == true) {
[Link](mValueOne / mValueTwo + "");
crunchifyDivision = false;
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]("");
});
[Link](new [Link]() {
@Override
public void onClick(View v) {
[Link]([Link]() + ".");
});
}
Output:
Skill Developed/Learning outcomes of this project:
In this project we learn about how to develop Android Apps. We also learn how to configure
android environment development tools. We also learn about to rich user interface by using
layout and control. We learn the use of user interface components for android application
development. And we learn how to publish android application.
Application of this project:
A calculator is a device that performs arithmetic operations on numbers. The
simplest calculators can do only addition, subtraction, multiplication, and division. More
sophisticated calculators can handle exponential operations, roots, logarithm s, trigonometric
functions, and hyperbolic functions.