Ajp Mic
Ajp Mic
A
Micro Project Report on
CLACULATOR
T.Y. [Diploma in Computer Engineering]
(SEMESTER V)
Guided By
Guide Name (AFZAL AHMAD)
Submitted by
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
Seal
of
Institution
Micro-Project Proposal
(Format for Micro-Project Proposal about 1-2 pages)
“CALCULATOR”
1.0 Action Plan (Sequence and time required for major activity)
Name of Responsible
S. Planned Start Planned Team
No. Details of activity date Finish date Members
S.
Name of Resource/material Specifications Qty Remarks
No.
ACKNOWLEDGEMENT
The most Beneficial and The most merciful.it is with deepest servegratitude of
the Al-mightythat gives me strength and ability to complete this micro
project.
First of all, I would like to take this opportunity to Express my special thanks
to my project guide who was guide me HOD, PROF, AFZAL AHMAD and
PRINCIPAL, for the guidance, assistance, advise, kindnessand also being
helpful to guide me all the way through The development and progress of my
micro project. Above all the most needed, he provide meunflinching
encouragement and support in various ways.
Micro-Project Report
“CALCULATOR”
1.0 Rationale:
2.0 Aims/Benefits of the Micro-Project: The primary aims and benefits of the micro-
project are:
5.0 Actual Methodology Followed: The methodology followed for this project
included:
S.
Name of Resource/material Specifications Qty Remarks
No.
8.0 Skill Developed / Learning Outcome: Throughout the project, team members have
developed several skills, including:
Advanced Java programming.
GUI design and implementation.
Exception handling and error management.
Collaborative project work and problem-solving.
PROGRAAM:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public CalculatorApp() {
setTitle("Calculator");
setSize(300, 400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
String[] buttonLabels = {
"7", "8", "9", "/",
"4", "5", "6", "*",
"1", "2", "3", "-",
"0", ".", "=", "+"
};
add(textField, BorderLayout.NORTH);
add(buttonPanel);
setVisible(true);
}
if (command.matches("[0-9]")) {
textField.setText(textField.getText() + command);
} else if (command.equals(".")) {
if (!textField.getText().contains(".")) {
textField.setText(textField.getText() + ".");
}
} else if (command.equals("=")) {
num2 = Double.parseDouble(textField.getText());
calculateResult();
textField.setText(String.valueOf(result));
} else {
if (operator != null) {
num2 = Double.parseDouble(textField.getText());
calculateResult();
textField.setText(String.valueOf(result));
} else {
num1 = Double.parseDouble(textField.getText());
}
operator = command;
textField.setText("");
}
}
Conclusion:
It looks like you've provided a micro project report on a calculator application developed
using Java. This report includes details about the project's aims, methodology, action plan,
resources used, and the actual code for the calculator.
It's important to note that the code provided is a Java Swing-based calculator application, and
the report outlines the objectives and outcomes of the project. The code appears to be
functional, providing basic arithmetic operations and a graphical user interface (GUI) for user
interaction.
If you have any specific questions or need further information or assistance related to this
project or report, please feel free to ask.
References
Websites:
Tutorialspoint Java
Java Course
JavaTpoint
4. **Open Source Contribution**: The calculator code can be shared as open source,
allowing other developers to learn from it or contribute to its improvement. It can be
part of the open source community, where developers collaborate to enhance the
software.
5. **Integration into Other Software**: The calculator can be integrated into other
software applications, such as productivity tools, educational software, or business
applications where mathematical calculations are required.
6. **Mobile App Development**: The calculator code can be adapted for mobile app
development. It can be used to create calculator apps for smartphones and tablets,
making it accessible to a wider audience.
11. **Business Tools**: The calculator can be integrated into business software for
tasks like currency conversion, sales calculations, and other business-related
computations.
**************