Madmicroproject
Madmicroproject
“Calculator”
Submitted by
1. Anjali Kailas Bhalerao
2. Samiksh Ramesh Suryawanshi
3. Chetna Vijay Suryawanshi
4. Kanishka Hemant Aher
Prof.R.Sonawane.
In the Partial Fulfilment of six Semester of Diploma in
Information Technology
Affiliated to
Certificate
This is to certify that Mr./Ms. Anjali Kailas bhalerao with Roll No-04 has successfully completed Micro-project
in course Mobile Application Development (22617) for the academic year 2024-25 as prescribed in the
'Assessment Manual' during his/her tenure of completing Sixth Semester of Diploma Program in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
Certificate
This is to certify that Mr./Ms. Samiksha Ramesh Suryawanshi with Roll No-07 has successfully completed
Micro-project in course Mobile Application Development (22617) for the academic year 2024-25 as prescribed
in the 'Assessment Manual' during his/her tenure of completing Sixth Semester of Diploma Program in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
Certificate
This is to certify that Mr./Ms. Chetna Vijay Suryawanshi with Roll No-14 has successfully completed
Microproject in course Mobile Application Development(22617) for the academic year 2024-25 as prescribed in
'Assessment Manual' during his/her tenure of completing Sixth Semester of Diploma Program in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
Certificate
This is to certify that Mr./Ms. Kanishka Hemant Aher with Roll No-33 has successfully completed Microproject
in course Mobile Application Development(22617) for the academic year 2024-25 as prescribed in the
'Assessment Manual' during his/her tenure of completing Sixth Semester of Diploma Program in Information
Technology from institute, Sandip Polytechnic with institute code 1167.
A calculator is an electronic device designed to perform mathematical calculations, from basic arithmetic
operations like addition and subtraction to complex computations involving trigonometry, algebra, and
statistics. Its primary function is to simplify and speed up calculations, reducing the likelihood of human
error.
Calculators have become an indispensable tool in various fields, including education, finance, engineering,
and science. Students use calculators to solve math problems and understand complex concepts, while
professionals rely on them for tasks such as budgeting, data analysis, and scientific computations.
Modern calculators come in various forms, including basic, scientific, and graphing calculators, each
catering to specific needs and applications. With advancements in technology, calculators have evolved to
include features like programmability, touch screens, and connectivity options, making them more versatile
and user-friendly.
Abstract
A calculator is an electronic device designed to perform mathematical calculations with speed and accuracy.
It simplifies complex computations, reducing the likelihood of human error and increasing productivity.
Calculators have become an essential tool in various fields, including education, finance, engineering,science.
The calculator's functionality extends beyond basic arithmetic operations, offering advanced features such as
trigonometric functions, statistical analysis, and programmability. Its versatility makes it an indispensable for
students, professionals, and individuals who require precise calculations in their daily work or projects.
By leveraging technology, calculators have evolved to cater to diverse needs, from basic calculations to
computations. Their impact on various industries and aspects of life is significant, enabling users to make
informed decisions, solve problems efficiently, and achieve their goals with greater accuracy and precision.
Advantages and Disadvantages of Calculator
Advantages :
1. Speed and Accuracy: Calculators perform calculations quickly and accurately, reducing the likelihood of
human error.
2. Efficiency: Calculators save time and effort, enabling users to focus on more complex tasks.
3. Versatility: Calculators offer a range of functions, from basic arithmetic to advanced mathematical
operations.
4. Convenience: Calculators are portable and easy to use, making them a valuable tool in various settings.
Disadvantages :
1. Dependence on Technology: Over-reliance on calculators can hinder mental math skills and problem
-solving abilities.
2. Limited Understanding: Users may not fully understand the underlying mathematical concepts, leading to
potential errors or misuse.
3. Battery Dependence: Calculators require batteries, which can run out of power at critical moments.
4. Cost: Advanced calculators can be expensive, especially for high-end models with specialized features.
Calculator Program
# Activity_main.xml
<EditText
android:id="@+id/etDisplay"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="0"
android:textSize="40sp" />
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnCount="4"
android:rowCount="4">
<Button
android:id="@+id/btn7"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="7" />
<Button
android:id="@+id/btn8"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="8" />
<Button
android:id="@+id/btn9"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="9" />
<Button
android:id="@+id/btnDivide"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="/" />
<Button
android:id="@+id/btn4"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="4" />
<Button
android:id="@+id/btn5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="5" />
<Button
android:id="@+id/btn6"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="6" />
<Button
android:id="@+id/btnMultiply"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="*" />
<Button
android:id="@+id/btn1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="1" />
<Button
android:id="@+id/btn2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="2" />
<Button
android:id="@+id/btn3"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="3" />
<Button
android:id="@+id/btnSubtract"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="-" />
<Button
android:id="@+id/btn0"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="0" />
<Button
android:id="@+id/btnClear"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="C" />
<Button
android:id="@+id/btnEquals"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="=" />
<Button
android:id="@+id/btnAdd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_columnWeight="1"
android:text="+" />
</GridLayout>
</LinearLayout>
# MainActivity.java
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import androidx.appcompat.app.AppCompatActivity;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_calculator);
etDisplay = findViewById(R.id.etDisplay);
btn0 = findViewById(R.id.btn0);
btn1 = findViewById(R.id.btn1);
btn2 = findViewById(R.id.btn2);
btn3 = findViewById(R.id.btn3);
btn4 = findViewById(R.id.btn4);
btn5 = findViewById(R.id.btn5);
btn6 = findViewById(R.id.btn6);
btn7 = findViewById(R.id.btn7);
btn8 = findViewById(R.id.btn8);
btn9 = findViewById(R.id.btn9);
btnAdd = findViewById(R.id.btnAdd);
btnSubtract = findViewById(R.id.btnSubtract);
btnMultiply = findViewById(R.id.btnMultiply);
btnDivide = findViewById(R.id.btnDivide);
btnEquals = findViewById(R.id.btnEquals);
btnClear = findViewById(R.id.btnClear);
btn0.setOnClickListener(this);
btn1.setOnClickListener(this);
btn2.setOnClickListener(this);
btn3.setOnClickListener(this);
btn4.setOnClickListener(this);
btn5.setOnClickListener(this);
btn6.setOnClickListener(this);
btn7.setOnClickListener(this);
btn8.setOnClickListener(this);
btn9.setOnClickListener(this);
btnAdd.setOnClickListener(this);
btnSubtract.setOnClickListener(this);
btnMultiply.setOnClickListener(this);
btnDivide.setOnClickListener(this);
btnEquals.setOnClickListener(this);
btnClear.setOnClickListener(this);
}
@Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.btn0:
etDisplay.setText(etDisplay.getText() + "0");
break;
case R.id.btn1:
etDisplay.setText(etDisplay.getText() + "1");
break;
case R.id.btn2:
etDisplay.setText(etDisplay.getText() + "2");
break;
case R.id.btn3:
etDisplay.setText(etDisplay.getText() + "3");
break;
case R.id.btn4:
etDisplay.setText(etDisplay.getText() + "4");
break;
case R.id.btn5:
etDisplay.setText(etDisplay.getText() + "5");
break;
case R.id.btn6:
etDisplay.setText(etDisplay.getText() + "6");
break;
case R.id.btn7:
etDisplay.setText(etDisplay.getText() + "7");
break;
case R.id.btn8:
etDisplay.setText(etDisplay.getText() + "8");
break;
case R.id.btn9:
etDisplay.setText(etDisplay.getText() + "9");
break;
case R.id.btnAdd:
number1 = Double.parseDouble(etDisplay.getText().toString());
operation = '+';
etDisplay.setText("");
break;
case R.id.btnSubtract:
number1 = Double.parseDouble(etDisplay.getText().toString());
operation = '-';
etDisplay.setText("");
break;
case R.id.btnMultiply:
number1 = Double.parseDouble(etDisplay.getText().toString());
operation = '*';
etDisplay.setText("");
break;
case R.id.btnDivide:
number1 = Double.parseDouble(etDisplay.getText().toString());
operation = '/';
etDisplay.setText("");
break;
case R.id.btnEquals:
number2 = Double.parseDouble(etDisplay.getText().toString());
switch (operation) {
case '+':
etDisplay.setText(String.valueOf(number1 + number2));
break;
case '-':
etDisplay.setText(String.valueOf(number1 - number2));
break;
case '*':
etDisplay.setText(String.valueOf(number1 * number2));
Outputs:-
Conclusion
A calculator is a powerful tool that simplifies mathematical calculations, making it an essential device in various
fields, including education, finance, engineering, and science. With its ability to perform complex computations
quickly and accurately, calculators have revolutionized the way we approach mathematical problems. Whether
used for basic arithmetic or advanced calculations, calculators have become an indispensable resource for and
professionals alike.
Annexure – I
• Evolution of Calculators: From mechanical to electronic, calculators have undergone significant improving
functionality and accuracy.
• Calculator Use in Education: Research highlights the benefits of calculators in enhancing math solving, and
critical thinking.
5.0Actual Methodology Followed:
• Requirements Gathering: Identify user needs, functional requirements, and technical specifications.
• Design: Create user interface (UI) and user experience (UX) designs, considering layout, buttons, and display.
• Algorithm Development: Implement mathematical algorithms for calculations, such as arithmetic operations.
6.0 Actual Resources Used:
Sr
Name of Resource/Material Specification Qty. Remarks
No
1 Hardware Resource -
2 Software Resource -
3 Any Other Resource -
7.0 Skill Developed:
(Prof.R.Sonawane)
Annexure – III
Micro Project Evaluation Sheet
5 Quality of Prototype/Model
6 Report Preparation
8 Viva
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)
5 Quality of Prototype/Model
6 Report Preparation
8 Viva
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)
5 Quality of Prototype/Model
6 Report Preparation
8 Viva
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)
5 Quality of Prototype/Model
6 Report Preparation
8 Viva
(A) (B)
Total Marks
Process and Product Assessment Individual Presentation/Viva
(10 Marks)
(6 Marks) (4 Marks)