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

JavaReport

Uploaded by

harshnilpatil09
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)
5 views

JavaReport

Uploaded by

harshnilpatil09
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/ 14

Programme: Computer Engineering Academic Year: 2024 – 2025

Course: Java Programming Course Code:(314318)


Semester: Fourth
MICRO PROJECT REPORT

Simple Calculator using Swing Component

Submitted by the group of _5_ students


Roll
Sr.
No Name Enrollment No Seat No
No

1 28 Snehal Tukaram Deore 23610960198 405560


2 67 Chaitali Samadhan Patil 23610960249 405699
3 68 Dnyaneshwar Bhatu Patil 23610960243 405600
4 69 Harshal Bhatu Patil 23610960244 405601
5 70 Harshnil Dilip Patil 23610960245 405602

Under the Guidance of

Ms. Chaitali Patil


in
Three Years Diploma Programme in Engineering and Technology of
Maharashtra State Board of Technical Education, Mumbai (Autonomous)
ISO 9001: 2008 (ISO/IEC-27001:2013) at Shri Shivaji Vidya Prasarak Sanstha’s
Bapusaheb Shivajirao Deore Polytechnic – 0059 Vidyanagari, Deopur, Dhule-
424005
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI

Certificate
This is to certify that,
Roll
No Name Enrollment No Seat No

28 Snehal Tukaram Deore 23610960198 405560


67 Chaitali Samadhan Patil 23610960249 405699
68 Dnyaneshwar Bhatu Patil 23610960243 405600
69 Harshal Bhatu Patil 23610960244 405601
70 Harshnil Dilip Patil 23610960245 405602

students of Fourth Semester Diploma Programme in Computer Engineering at


Shri Shivaji Vidya Prasarak Sanstha's Bapusaheb Shivajirao Deare
Polytechnic, Dhule (Institute Code: 0059), have completed the Micro Project
satisfactorily in Subject Java Programming (314318) in the academic year 2024-
2025 as prescribed in the MSBTE curriculum of K Scheme.

Place: Dhule Date: - / / 2025

Project Guide Head of the Department Principal

Seal Of
Institute
Part A: Micro Project Proposal

Title of Micro Project: Simple Calculator using Swing Component

1.Introduction:
Java Swing is a part of Java's standard library used to create Graphical
User Interfaces (GUIs). It provides a rich set of widgets and packages to create
interactive applications.
A Simple Calculator built using Swing allows users to perform basic arithmetic
operations such as Addition, Subtraction, Multiplication, and Division via a
graphical interface with buttons and text fields.

2.Aim of the Project:


The aim of this micro project is to design and develop a simple calculator
application using Java Swing components that can perform basic arithmetic
operations such as addition, subtraction, multiplication, and division. This project
demonstrates the use of GUI-based programming in Java, focusing on user
interaction through graphical components like buttons, text fields, and event
handling.
3. Intended Course Outcome:
• Understand GUI Development in Java To analyze the protocol
operation.
• Develop Basic Arithmetic Logic
• Enhance Problem-Solving Skills

4.Literature Review:

The concept of calculators has been fundamental in the development


of computing systems. Over the years, calculators have evolved from physical
mechanical devices to software-based applications. In modern computing,
building a calculator application serves as an introductory exercise in GUI
development and event handling.
Java Swing is a widely used GUI toolkit in the Java programming language. It
provides a rich set of components such as JFrame, JButton, JTextField, and
JPanel, which can be used to build user-friendly applications. Swing is built on
top of the Abstract Window Toolkit (AWT) and offers more flexible and
customizable GUI elements.
Numerous studies and tutorials emphasize the importance of event-driven
programming in GUI-based applications. Handling user actions through
ActionListener interfaces allows for responsive and interactive user interfaces.
5.Resources Required:

Sr. Name of Resources / Material Specification


no
1 Hardware Laptop Computer Processor: Intel(R) Pentium(R)
Dual CPU E2140@1.60Hz
RAM:512MB
2 JDK -

6.Action Plan:
Sr. Details of Activity Planned Planned Name of
No. Start Finish Date responsible
Date team
member
1 Define Problem of the Project 17/1/25 24/1/25 Harshal,
Chaitali
2 Searching and Gathering 24/1/25 31/1/25 Snehal, Chaitali
Information
3 Designing the Project 14/2/25 21/2/25 Harshnil,
Dnyaneshwar

4 Documentation 7/3/25 12/2/25 All Members

5 Demonstration 20/3/25 20/3/25 All Members


PART B: Micro – Project Report

Title of Micro Project: Simple Calculator using Swing Component


1.Rationale:
In today's digital age, the ability to develop user-friendly applications is a
crucial skill for any aspiring software developer. Building a Simple Calculator
using Java Swing components provides a foundational understanding of
Graphical User Interface (GUI) development, which is essential for creating
interactive desktop applications.

2.Course Outcomes Addressed:


• Understand GUI Development in Java To analyze the protocol operation.
• Develop Basic Arithmetic Logic
• Enhance Problem-Solving Skills

3.Literature Review:
The concept of calculators has been fundamental in the development of
computing systems. Over the years, calculators have evolved from physical
mechanical devices to software-based applications. In modern computing,
building a calculator application serves as an introductory exercise in GUI
development and event handling.
Java Swing is a widely used GUI toolkit in the Java programming language. It
provides a rich set of components such as JFrame, JButton, JTextField, and
JPanel, which can be used to build user-friendly applications. Swing is built on
top of the Abstract Window Toolkit (AWT) and offers more flexible and
customizable GUI elements.
Numerous studies and tutorials emphasize the importance of event-driven
programming in GUI-based applications. Handling user actions through
ActionListener interfaces allows for responsive and interactive user interfaces.
4.Java Program Code
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;

class SimpleCalculatorSwing extends JFrame implements ActionListener


{
private JTextField textField;
private double num1, num2, result;
private char operator;

SimpleCalculatorSwing()
{
setTitle("Swing Calculator");
setSize(300, 400);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
BorderLayout B1 = new BorderLayout();
setLayout(B1);

textField = new JTextField();


textField.setEditable(false);
add(textField, BorderLayout.NORTH);

JPanel panel = new JPanel();


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

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

for (String label : buttons)


{
JButton button = new JButton(label);
button.addActionListener(this);
panel.add(button);
}

add(panel, BorderLayout.CENTER);
setVisible(true);
}

public void actionPerformed(ActionEvent e)


{
String command = e.getActionCommand();

if (command.charAt(0) >= '0' && command.charAt(0) <= '9')


{
textField.setText(textField.getText() + command);
}
else if (command.charAt(0) == 'C')
{
textField.setText("");
num1 = num2 = result = 0;
}
else if (command.charAt(0) == '=')
{
num2 = Double.parseDouble(textField.getText());
switch (operator)
{
case '+': result = num1 + num2; break;
case '-': result = num1 - num2; break;
case '*': result = num1 * num2; break;
case '/': result = (num2 != 0) ? num1 / num2 : 0; break;
}
textField.setText(" " + result);
}
else
{
num1 = Double.parseDouble(textField.getText());
operator = command.charAt(0);
textField.setText("");
}
}

public static void main(String[] args)


{
SimpleCalculatorSwing Simple= new SimpleCalculatorSwing();
}
}
5.OutPut

6.Skills Developed of This MicroProject:


• Understand Java Swing Framework
Gain hands-on experience with Java Swing components like JFrame,
JButton, JTextField, and JPanel.
• Implement Event-Driven Programming
Learn how to handle user actions (button clicks) using ActionListener
interfaces effectively.
• Design User Interfaces
Develop skills in designing intuitive and functional GUI layouts.
• Apply Logical and Arithmetic Operations
Improve problem-solving by implementing the logic for basic
mathematical operations.
• Enhance Programming and Debugging Skills
Strengthen Java programming skills and gain experience in testing and
debugging GUI applications.
• Understand Code Modularity and Reusability
Learn to write organized, modular, and reusable code.
• Develop a Functional Desktop Application
Build confidence in creating a complete, standalone Java application from
scratch.
7.References:
• https://www.geeksforgeeks.org/java-swing/
• https://www.tutorialspoint.com/swing/index.htm
• https://www.javatpoint.com/java-swing
• ChatGPT
Evaluation Sheet for the Micro Project Annexure
Academic Year: 2024-2025 Name of Faculty: Prof. Chaitali Patil
Sem: Fourth Program Name and Code: CO4K
Course code: 314317 Course Name: Java Programming

Title of the Project: Simple Calculator using Swing Component

❖ Cos addressed by the Micro Project:


• Understand the basics of object-oriented programming using Java
• Develop GUI-based applications using Java Swing
• Apply logical and arithmetic operations in program development

❖ Major Learning outcomes achieved by Students by doing the Project:


A) Practical Outcomes
1. Basic and Discipline specific knowledge
2. Design/ development of solutions
3. Project Management

B) Unit Outcomes (in cognitive domain):


Java programming knowledge to design and implement a simple calculator
using Swing components
C) Outcomes in Affective Domain:
• Value the importance of GUI-based applications in modern software
development, recognizing their role in user interaction and engagement.
• Demonstrate a willingness to learn and explore Java Swing components
by building an interactive and user-friendly application.

• Name of students: Snehal Tukaram Deore


• Marks
A. Marks for Group work B. Marks for group work: C. Total Marks(A+B)

Prof. Chaitali Patil


Lecturer in deptt. Of Computer Engineering
SSVPS's B.S. Deore, Polytechnic, Dhule
Evaluation Sheet for the Micro Project Annexure
Academic Year: 2024-2025 Name of Faculty: Prof. Chaitali Patil
Sem: Fourth Program Name and Code: CO4K
Course code: 314317 Course Name: Java Programming

Title of the Project: Simple Calculator using Swing Component

❖ Cos addressed by the Micro Project:


• Understand the basics of object-oriented programming using Java
• Develop GUI-based applications using Java Swing
• Apply logical and arithmetic operations in program development

❖ Major Learning outcomes achieved by Students by doing the Project:


A) Practical Outcomes
1. Basic and Discipline specific knowledge
2. Design/ development of solutions
3. Project Management

B) Unit Outcomes (in cognitive domain):


Java programming knowledge to design and implement a simple calculator
using Swing components
C) Outcomes in Affective Domain:
• Value the importance of GUI-based applications in modern software
• development, recognizing their role in user interaction and engagement.
• Demonstrate a willingness to learn and explore Java Swing components
by building an interactive and user-friendly application.

• Name of students: Chaitali Samadhan Patil


• Marks
A. Marks for Group work B. Marks for group work: C. Total Marks(A+B)

Prof. Chaitali Patil


Lecturer in deptt. Of Computer Engineering
SSVPS's B.S. Deore, Polytechnic, Dhule
Evaluation Sheet for the Micro Project Annexure
Academic Year: 2024-2025 Name of Faculty: Prof. Chaitali Patil
Sem: Fourth Program Name and Code: CO4K
Course code: 314317 Course Name: Java Programming

Title of the Project: Simple Calculator using Swing Component

❖ Cos addressed by the Micro Project:


• Understand the basics of object-oriented programming using Java
• Develop GUI-based applications using Java Swing
• Apply logical and arithmetic operations in program development

❖ Major Learning outcomes achieved by Students by doing the Project:


A) Practical Outcomes
1. Basic and Discipline specific knowledge
2. Design/ development of solutions
3. Project Management

B) Unit Outcomes (in cognitive domain):


Java programming knowledge to design and implement a simple calculator
using Swing components
C) Outcomes in Affective Domain:
• Value the importance of GUI-based applications in modern software
development, recognizing their role in user interaction and engagement.
• Demonstrate a willingness to learn and explore Java Swing components
by building an interactive and user-friendly application.

• Name of students: Dnyaneshwar Bhatu Patil


• Marks
A. Marks for Group work B. Marks for group work: C. Total Marks(A+B)

Prof. Chaitali Patil


Lecturer in deptt. Of Computer Engineering
SSVPS's B.S. Deore, Polytechnic, Dhule
Evaluation Sheet for the Micro Project Annexure
Academic Year: 2024-2025 Name of Faculty: Prof. Chaitali Patil
Sem: Fourth Program Name and Code: CO4K
Course code: 314317 Course Name: Java Programming

Title of the Project: Simple Calculator using Swing Component


❖ Cos addressed by the Micro Project:
• Understand the basics of object-oriented programming using Java
• Develop GUI-based applications using Java Swing
• Apply logical and arithmetic operations in program development

❖ Major Learning outcomes achieved by Students by doing the Project:


A) Practical Outcomes
1. Basic and Discipline specific knowledge
2. Design/ development of solutions
3. Project Management

B) Unit Outcomes (in cognitive domain):


Java programming knowledge to design and implement a simple calculator
using Swing components
C) Outcomes in Affective Domain:
• Value the importance of GUI-based applications in modern software
development, recognizing their role in user interaction and engagement.
• Demonstrate a willingness to learn and explore Java Swing components
by building an interactive and user-friendly application.

• Name of students: Harshal Bhatu Patil


• Marks
A. Marks for Group work B. Marks for group work: C. Total Marks(A+B)

Prof. Chaitali Patil


Lecturer in deptt. Of Computer Engineering
SSVPS's B.S. Deore, Polytechnic, Dhule
Evaluation Sheet for the Micro Project Annexure
Academic Year: 2024-2025 Name of Faculty: Prof. Chaitali Patil
Sem: Fourth Program Name and Code: CO4K
Course code: 314317 Course Name: Java Programming

Title of the Project: Simple Calculator using Swing Component

❖ Cos addressed by the Micro Project:


• Understand the basics of object-oriented programming using Java
• Develop GUI-based applications using Java Swing
• Apply logical and arithmetic operations in program development

❖ Major Learning outcomes achieved by Students by doing the Project:


A) Practical Outcomes
1. Basic and Discipline specific knowledge
2. Design/ development of solutions
3. Project Management

B) Unit Outcomes (in cognitive domain):


Java programming knowledge to design and implement a simple calculator
using Swing components
C) Outcomes in Affective Domain:
• Value the importance of GUI-based applications in modern software
development, recognizing their role in user interaction and engagement.
• Demonstrate a willingness to learn and explore Java Swing components
by building an interactive and user-friendly application.

• Name of students: Harshnil Dilip Patil


• Marks
A. Marks for Group work B. Marks for group work: C. Total Marks(A+B)

Prof. Chaitali Patil


Lecturer in deptt. Of Computer Engineering
SSVPS's B.S. Deore, Polytechnic, Dhule

You might also like