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

Ajp Mic

This document summarizes a micro project report for developing a calculator application using Java. A team of 5 students created the calculator to enhance their Java programming skills and demonstrate object-oriented principles. They designed a graphical user interface for the calculator and implemented basic and advanced mathematical operations. The team tested the calculator thoroughly to ensure accuracy and functionality met the project goals of applying their Java skills and creating a useful tool.

Uploaded by

Tofik Panwala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Ajp Mic

This document summarizes a micro project report for developing a calculator application using Java. A team of 5 students created the calculator to enhance their Java programming skills and demonstrate object-oriented principles. They designed a graphical user interface for the calculator and implemented basic and advanced mathematical operations. The team tested the calculator thoroughly to ensure accuracy and functionality met the project goals of applying their Java skills and creating a useful tool.

Uploaded by

Tofik Panwala
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

CALCULATOR ADVANCE JAVA PROGRAAMING

A
Micro Project Report on
CLACULATOR
T.Y. [Diploma in Computer Engineering]
(SEMESTER V)

Guided By
Guide Name (AFZAL AHMAD)
Submitted by

1. Farooqui Mohammad faizan

14.Farooqui imran akhtar

15. Farooqui faizan ahmad

16.Farooqui Mohammad zakariya

4.Sayyed sajid Ali

Department of Computer Engineering


Jamia Polytechnic
Akkalkuwa – 425415
[2023-24]

Computer Department, Jamia Polytechnic, Akkalkuwa 1


CALCULATOR ADVANCE JAVA PROGRAAMING

MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION

Certificate

This is to certify that Mr. farooqui Faizan, farooqui Imran, farooqui


Faizan, farooqui zakariyya, Sayyed sajid ali Roll No. 1,14,15,16,04 of
Fifth Semester of Diploma in Computer Engineering of Institution
Jamia Polytechnic, Akkalkuwa, Institute Code 0366 has satisfactorily
completed the Micro Project work in Course ADVANCE JAVA
PROGRAMMING Corse Code AJP- 22517 for the academic year 2023
– 2024 as prescribed in the curriculum.

Place :…………………………. Enrollment No………………………….


Date : …………………………. Exam. Seat No………………………....

Subject Teacher Head of the Department Principal

Seal
of
Institution

Computer Department, Jamia Polytechnic, Akkalkuwa 2


CALCULATOR ADVANCE JAVA PROGRAAMING

Micro-Project Proposal
(Format for Micro-Project Proposal about 1-2 pages)

“CALCULATOR”

1.0 Aims/Benefits of the Micro-Project:

This micro-project aims to develop an advanced calculator application using Java,


providing benefits such as enhancing students' Java programming skills, demonstrating the
practical application of object-oriented programming, and creating a useful tool for
mathematical calculations.

2.0 Course Outcomes Addressed:

a) Understand and apply object-oriented programming principles in Java.

b) Develop a graphical user interface (GUI) application.

c) Implement advanced mathematical operations in Java.

d) Apply exception handling in Java for robust software.

3.0 Proposed Methodology:

The micro-project will follow these steps:

We will create a Java Swing-based GUI for the calculator.


Implement the basic arithmetic operations (addition, subtraction, multiplication, division).
Incorporate advanced functions like square root, power, trigonometric functions, and
logarithms.

Implement exception handling for input validation and error management.


Test the calculator thoroughly to ensure accuracy and usability.

Computer Department, Jamia Polytechnic, Akkalkuwa 3


CALCULATOR ADVANCE JAVA PROGRAAMING

4.0 Action Plan:

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

GUI Design & Layout Faizan ahmad


1 07/08/2023 19/08/2023
Basic Operations Imran Akhtar
2 21/08/2023 26/08/2023
Advanced Functions Farooqui zakarriya
3 28/08/2023 02/09/2023
Exception Handling Md Faizan
4 04/09/2023 09/09/2023
Testing & Debugging Sayyed sajid ali
5 11/09/2023 16/09/2023

5.0 Resources Required:

S.
Name of Resource/material Specifications Qty Remarks
No.

1 TEXTPAD - Coding environment


2 JAVA SWING LIBRARY - For GUI development
3 JAVA SDK - For Java programming
4 TESTING INVIORENT - For testing the calculator

Names of Team Members with Roll Nos.


1. Farooqui Mohammad faizan
14.Farooqui imran akhtar
15. Farooqui faizan ahmad
16.Farooqui Mohammad zakariya
4.Sayyed sajid Ali

Computer Department, Jamia Polytechnic, Akkalkuwa 4


CALCULATOR ADVANCE JAVA PROGRAAMING

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.

My appreciation also goes to my friend for their advice, supervisions,and


crucial contribution, and cooperation during the completion of my micro
project. Thank you forlending hands during progress of thismicro project.

Finally, I also would like to express my exceptional thanks to my beloved


parents for their support and unending prayers and helps medirectly or
indirectly in successful finishing of mymicro project.

Computer Department, Jamia Polytechnic, Akkalkuwa 5


CALCULATOR ADVANCE JAVA PROGRAAMING

Micro-Project Report

“CALCULATOR”

1.0 Rationale:

The Advanced Java Calculator project is of significant importance as it serves both


as a practical application of Java programming skills and as a valuable tool for
mathematical calculations, contributing to the development of strong coding skills
and real-world problem-solving capabilities.

2.0 Aims/Benefits of the Micro-Project: The primary aims and benefits of the micro-
project are:

 To develop an advanced calculator application in Java.

 To enhance students' Java programming skills.

 To demonstrate the practical application of object-oriented programming.

 To create a functional tool for mathematical calculations.

3.0 Course Outcomes Achieved:

a) Understand and apply object-oriented programming principles in Java.

b) Develop a graphical user interface (GUI) application.

c) Implement advanced mathematical operations in Java.

d) Apply exception handling in Java for robust software.

4.0 Literature Review:

A review of relevant literature was conducted, which primarily focused on Java


programming, GUI development, and mathematical calculations in Java applications.

5.0 Actual Methodology Followed: The methodology followed for this project
included:

 Designing and implementing a Java Swing-based GUI for the calculator.


 Developing basic arithmetic operations (addition, subtraction, multiplication,
division).
 Incorporating advanced functions like square root, power, trigonometric
functions, and logarithms.
 Implementing exception handling for input validation and error management.
 Testing the calculator thoroughly for accuracy and usability.

Computer Department, Jamia Polytechnic, Akkalkuwa 6


CALCULATOR ADVANCE JAVA PROGRAAMING

1.0 Actual Resources Used (Mention the actual resources used).

S.
Name of Resource/material Specifications Qty Remarks
No.

1 TEXTPAD - Coding environment


2 JAVA SWING LIBRARY - For GUI development
3 JAVA SDK - For Java programming
4 TESTING INVIORENT - For testing the calculator

7.0 Outputs of the Micro-Project: The outputs of the micro-project include:


 A Java Swing-based calculator application.
 A well-documented codebase.
 Screenshots of the calculator's user interface.
 Test results and reports on functionality and accuracy.

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.

Computer Department, Jamia Polytechnic, Akkalkuwa 7


CALCULATOR ADVANCE JAVA PROGRAAMING

PROGRAAM:

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class CalculatorApp extends JFrame {


private JTextField textField;
private double num1, num2, result;
private String operator;

public CalculatorApp() {
setTitle("Calculator");
setSize(300, 400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

textField = new JTextField();


textField.setFont(new Font("Arial", Font.PLAIN, 20));
textField.setHorizontalAlignment(JTextField.RIGHT);

JPanel buttonPanel = new JPanel();


buttonPanel.setLayout(new GridLayout(4, 4));

String[] buttonLabels = {
"7", "8", "9", "/",
"4", "5", "6", "*",
"1", "2", "3", "-",
"0", ".", "=", "+"
};

for (String label : buttonLabels) {


JButton button = new JButton(label);
button.setFont(new Font("Arial", Font.PLAIN, 20));
button.addActionListener(new ButtonClickListener());
buttonPanel.add(button);
}

add(textField, BorderLayout.NORTH);
add(buttonPanel);

setVisible(true);
}

private class ButtonClickListener implements ActionListener {


public void actionPerformed(ActionEvent e) {
String command = e.getActionCommand();

if (command.matches("[0-9]")) {

Computer Department, Jamia Polytechnic, Akkalkuwa 8


CALCULATOR ADVANCE JAVA PROGRAAMING

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("");
}
}

private void calculateResult() {


switch (operator) {
case "+":
result = num1 + num2;
break;
case "-":
result = num1 - num2;
break;
case "*":
result = num1 * num2;
break;
case "/":
if (num2 != 0) {
result = num1 / num2;
} else {
result = 0; // Handle division by zero
}
break;
}
}
}

public static void main(String[] args) {


SwingUtilities.invokeLater(() -> new CalculatorApp());
}
}

Computer Department, Jamia Polytechnic, Akkalkuwa 9


CALCULATOR ADVANCE JAVA PROGRAAMING

OUTPUT OF SCREEN SNAPSHOT:

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

Computer Department, Jamia Polytechnic, Akkalkuwa 10


CALCULATOR ADVANCE JAVA PROGRAAMING

9.0 Applications of this Micro-Project:


The "Calculator" micro-project, which involved developing an advanced calculator
application in Java, has several potential applications and use cases beyond its
primary educational purpose. Here are some of the applications of this micro-project:

1. **Educational Tool**: This calculator application can be used as an educational


tool to help students learn and practice mathematical calculations, especially in Java
programming courses. It can serve as a practical example for understanding object-
oriented programming, GUI development, and exception handling.

2. **Real-World Problem Solving**: The calculator can be used as a real-world


problem-solving tool for various users, including students, professionals, and anyone
who needs to perform mathematical calculations.

3. **Software Development Foundation**: The project can serve as a foundation for


more complex calculator applications. Developers can build upon this codebase to
create calculators with additional features, such as scientific functions, unit
conversions, and more.

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.

7. **Customization and Specialized Calculators**: The code can be customized to


create specialized calculators tailored for specific fields or industries, such as
engineering, finance, or science.

Computer Department, Jamia Polytechnic, Akkalkuwa 11


CALCULATOR ADVANCE JAVA PROGRAAMING

8. **Interactive Learning Resources**: The calculator can be integrated into online


educational platforms or interactive learning resources to enhance the learning
experience for students studying mathematics and computer science.

9. **Financial Calculations**: It can be extended to handle financial calculations,


making it a useful tool for personal finance management, budgeting, and investment
planning.

10. **Scientific Calculations**: Additional scientific functions can be added to the


calculator to support scientific research and data analysis.

11. **Business Tools**: The calculator can be integrated into business software for
tasks like currency conversion, sales calculations, and other business-related
computations.

12. **Accessibility Features**: The calculator's GUI can be enhanced to support


accessibility features, making it usable by individuals with disabilities.
Overall, the "Calculator" micro-project, while originally intended for educational
purposes, has the potential to evolve into a versatile and practical tool with a wide range
of applications in both educational and real-world scenarios.

**************

Process Assessment Product Assessment Total


Marks
Roll Name Project Project Project Individual 10
No. Proposal (2 Methodology Report/ Presentation
marks) (2 marks) Working (4 Marks)
model (2
marks)

Computer Department, Jamia Polytechnic, Akkalkuwa 12

You might also like