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

JavaReportnew

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)
4 views

JavaReportnew

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 S. 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:


To design and implement a simple calculator using Java Swing components
for basic arithmetic operations.
3. Intended Course Outcome:
• CO1 - Develop java program using classes and objects.
• CO3 - Develop program to implement multithreading and exception
handling.
• CO4 - Develop java program for implementing event handling using
window-based application components.
4.Literature Review:

I. Calculators in the Classroom


• Author: Donald R. Quinn
• Published in: NASSP Bulletin, 1976
• Overview: This early study discusses the implications of introducing
calculators into classrooms. It explores the potential benefits and
challenges, including concerns about students' reliance on calculators
and the impact on learning fundamental arithmetic skills

II. Pre-Calc: Learning to Use the Calculator Improves Numeracy in


Language Models
• Authors: Vishruth Veerendranath, Vishwa Shah, Kshitish Ghate
• Published: April 22, 2024
• Overview: This research proposes "Pre-Calc," a pre-finetuning
objective that teaches language models to use calculators, enhancing
their numerical understanding. The approach improves performance on
tasks requiring quantitative comprehension.
5.Resources Required:

Sr. Name of Resources / Material Specification


no
1 Hardware Computer System Any Machine

2 Operating System Any OS

3 Software JDK 1.8.0 or Above

6.Action Plan:
Sr. Details of Planned Planned Name of responsible
No. Activity Start Finish team member
Date Date
1 Define Problem of Harshal Bhatu Patil,
the Project Chaitali Samadhan Patil
2 Searching and Snehal Tukaram Deore
Gathering ,Chaitali Samadhan Patil
Information
3 Designing the Harshnil Dilip Patil,
Project Dnyaneshwar Bhatu Patil
4 Documentation All Members

5 Demonstration 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:


• CO1 - Develop java program using classes and objects.
• CO3 - Develop program to implement multithreading and exception
handling.
• CO4 - Develop java program for implementing event handling using
window-based application components.

3.Literature Review:
I. Calculators in the Classroom
• Author: Donald R. Quinn
• Published in: NASSP Bulletin, 1976
• Overview: This early study discusses the implications of introducing
calculators into classrooms. It explores the potential benefits and
challenges, including concerns about students' reliance on calculators
and the impact on learning fundamental arithmetic skills

II. Pre-Calc: Learning to Use the Calculator Improves Numeracy in


Language Models

• Authors: Vishruth Veerendranath, Vishwa Shah, Kshitish Ghate


• Published: April 22, 2024
• Overview: This research proposes "Pre-Calc," a pre-finetuning
objective that teaches language models to use calculators, enhancing
their numerical understanding. The approach improves performance
on tasks requiring quantitative comprehension
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

Fig No 1: Output Of Calculator

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. Actual Resources Used

Sr. Name of Resources / Material Specification


no
1 Hardware Computer System Processor :Intel(R)
Core(TM) i5-1235U
1.30 GHz
RAM: 512GB
2 Operating System Any OS
3 Software JDK 1.8.0 or Above

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: Mr.Chaitali S. 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:


• CO1 - Develop java program using classes and objects.
• CO3 - Develop program to implement multithreading and
exception handling.
• CO4 - Develop java program for implementing event handling
using window-based application components.

❖ 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 (28)


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

Mr. Chaitali S. 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: Mr. Chaitali S. 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:
• CO1 - Develop java program using classes and objects.
• CO3 - Develop program to implement multithreading and exception
handling.
• CO4 - Develop java program for implementing event handling using
window-based application components.

❖ 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 (67)


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

Mr. Chaitali S. 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 S. 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:


• CO1 - Develop java program using classes and objects.
• CO3 - Develop program to implement multithreading and exception
handling.
• CO4 - Develop java program for implementing event handling using
window-based application components.

❖ 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 (68)


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

Mr. Chaitali S. 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: Mr. Chaitali S. 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:
• CO1 - Develop java program using classes and objects.
• CO3 - Develop program to implement multithreading and
exception handling.
• CO4 - Develop java program for implementing event handling
using window-based application components.

❖ 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 (69)


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

Mr. Chaitali S. 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: Mr. Chaitali S. 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:


• CO1 - Develop java program using classes and objects.
• CO3 - Develop program to implement multithreading and
exception handling.
• CO4 - Develop java program for implementing event handling
using window-based application components.

❖ 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 (70)


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

Mr. Chaitali S. Patil


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

You might also like