Microproject Starting
Microproject Starting
Submitted By:
CERTIFICATE OF COMPLETION
This is to certify that the following students of semester 4th of diploma in Computer
engineering of institute, Government Polytechnic Awasari (KH) (INST.Code-1051) have
completed the microproject “Prepare Calculator Design using Applet” satisfactorily in
course of Java Programming (22412) for the academic year 2023-24 as prescribed in the
curriculum.
Place : Awasari(KH)
Date :
Page
Sr.No. Contents
Number
6
Aim/Benefits Of
1
Microproject
6
Course Outcome
2
Addressed
6
3 Proposed Methodology
7
4 Action Plan
8
5 Resources Required
8
Name of team members
6
with enrollment
PART A :Micro-Project
Proposal on
Prepare Calculator Design using Applet
Aim :
The aim of preparing a calculator design using an applet in Java can be multifaceted, depending on
the context and the objectives of the project. Here are some common goals and benefits associated
with creating a calculator design using Java applets:
Educational Purposes: Developing a calculator using Java applets can serve as a practical exercise
for learning various programming concepts such as object-oriented programming, event handling,
graphical user
Course Outcomes :
The course outcomes of creating a calculator design using Java applets can vary depending on the
specific educational program or course objectives. However, here are some potential course
outcomes or learning objectives that could be achieved through such a project:
GUI Design and Event Handling: Students will learn how to design graphical user interfaces
(GUIs) using Java applets and handle user events such as button clicks, mouse interactions, and
keyboard inputs to perform calculations.
Data Structures and Algorithms: Depending on the complexity of the calculator design, students
may need to implement data structures (e.g., stacks, queues) and algorithms (e.g., infix to postfix
conversion, arithmetic operations) to evaluate mathematical expressions accurately.
Error Handling and Validation: Students will learn how to handle errors and validate user inputs to
ensure that the calculator operates reliably and provides meaningful feedback to users in case of
invalid inputs or calculations.
Testing and Debugging Skills: Students will develop proficiency in testing their code and
debugging any issues or errors that arise during the development process, thereby enhancing their
problem-solving skills.
Documentation and Code Organization: Students will learn the importance of documenting their
code effectively and organizing it in a modular and maintainable manner, following best practices
and coding conventions.
User Experience (UX) Design: Depending on the course objectives, students may also learn about
principles of user experience (UX) design and how to create intuitive and user-friendly interfaces for
their calculator application.
Project Management and Collaboration: If the project is part of a group assignment or team-based
project, students will gain experience in collaborating with team members, managing project tasks,
and coordinating efforts to deliver a functional calculator application within a specified timeframe.
Proposed Methodology :
When we're making a calculator using Java applets, we've got this plan, you know? First off, we
gotta really understand what our calculator needs to do. Like, does it just add and subtract, or are we
adding in some extra cool features? We also gotta think about who's gonna be using our calculator
and what they're expecting it to look like and do.
Once we've got that sorted, it's time to design the look of our calculator. We're talking about where
the buttons go, what they look like, and how the whole thing fits together. Plus, we need to figure out
how to organize the code behind the scenes, making sure it's all neat and tidy.
Then comes the fun part: actually building the thing! We use Java code to create the buttons, text
fields, and stuff like that. We also make sure our calculator can handle all the math stuff people
throw at it, like adding numbers or dividing them.
Testing is super important too. We gotta try out our calculator in all sorts of situations to make sure it
works right. You know, like checking if it still adds up correctly even if you hit the buttons in a weird
order.
And don't forget about the paperwork! We need to write down why we designed things a certain way
and how to use our calculator. Plus, we gotta make sure our code is easy for others to understand in
case they want to change it later.
Once everything's done, we share our calculator with the world! We make it available for anyone to
use, and we keep an eye on feedback so we can make it even better over time. It's all about making
sure our calculator is helpful and easy to use for everyone who needs it.
Action plan:-
Name of
Sr. Planned Planned responsible
Details of activity
No starts date finish date Team
members
Parvej
Ashpak
Inamdar
Procurement/Arrangement of
4 components and material requiredfor
project.
Pallavi
Shamrav
Khandagale
5 Actual projector assembling work
8 Submission of project.
Required Resources:-
4 Laptop HP 1 -
6 RAM 8 GB 1 -
2
Part – B Micro-Project Report
On
Prepare Calculator Design using Applet
Calculator Design using Applet :
The project involves developing a calculator application using Java applets, incorporating basic
arithmetic operations and potentially additional features. The methodology encompasses requirements
analysis, meticulous design, rigorous implementation, thorough testing, comprehensive documentation,
and deployment. Adherence to this structured approach ensures the systematic development and
delivery of a high-quality calculator application, meeting user expectations effectively.
Features :
Memory Functions:
1.Incorporates memory functions such as memory recall and memory clear for storing and
2.manipulating temporary values during calculations.
Scientific Functions):
3
Program Code:
java.awt.*; import
java.awt.event.*;
int pv = 0;
String op = "";
4
public void init()
setLayout(new BorderLayout());
add(t1,"North");
t1.setText("0");
if (i < 10)
else
5
p.add(b[i]);
add(p, "Center");
b[i].addActionListener(this);
int res = 0;
int cv = Integer.parseInt(t1.getText());
if (cap.equals("C"))
t1.setText("0");
pv = 0;
6
cv = 0;
res = 0;
op = "";
else if (cap.equals("="))
res = 0;
if (op == "+")
res = pv + cv;
res = pv - cv;
res = pv * cv;
7
else if (op == "/")
res = pv / cv;
t1.setText(String.valueOf(res));
pv = cv;
op = cap;
t1.setText("0");
else
8
int v = cv * 10 + Integer.parseInt(cap);
t1.setText(String.valueOf(v));
/*
</applet>
*/
Output :