0% found this document useful (0 votes)
15 views16 pages

Microproject Starting

Uploaded by

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

Microproject Starting

Uploaded by

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

GOVERNMENT POLYTECHNIC AWASARI (KHURD)

Tal: Ambegaon, Pune - 412 405


2023-2024
Micro Project
Report On
“ Prepare Calculator Design using Applet ”
Submitted in fulfillment for ‘I’ Scheme Fourth semester
of Diploma in
COMPUTER ENGINEERING

Submitted By:

Sr No Roll No Name Of Student Enrollment No


1 23CO267 Inamdar Parvej Ashpak 2210510404
2 23CO268 Lohakare Sakshi Sharad 2210510004
3 23CO269 Khandagale Pallavi Shamrav 2210510042

Under the Guidance of


Prof.A.J.Patil

Maharashtra State Board of Technical Education, Mumbai


(Autonomous) (ISO-9001-2008) (ISO/IEC 27001:2013)
Maharashtra State Board of Technical Education, Mumbai
(Autonomous) (ISO-9001-2008) (ISO/IEC 27001:2013)

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.

Sr No Roll No Name Of Student Enrollment No


1 23CO267 Inamdar Parvej Ashpak 2210510404
2 23CO268 Lohakare Sakshi Sharad 2210510004
3 23CO269 Khandagale Pallavi Shamrav 2210510042

Place : Awasari(KH)

Date :

Guide HOD Principal


(Ms A.J.Patil) (Mr.S.D.Muley) (Dr.V.S.Bandal)
ACKNOWLEDGEMENT

We have great pleasure and sense of satisfaction in presenting this micro-


project report on “ Prepare Calculator Design using Applet ” as part of the
curriculum of Diploma in Computer Engineering. Being notice in the field of
designing and structuring in this micro-project, it could have been extremely
difficult for us to complete this micro-project on our own. We are very fortunate
to be guided by people with vast and resourceful experience in their respective
field of work.

We express our sincere gratitude to our guide Ms. A.J.Patil (Lecturer,


Computer Engg. Dept.). For her timely guidance, support and suggestions. We
are also thankful for her sincere help and for making us available all the facilities
of the department. Without her efforts and constant monitoring the micro-project
and documentation would not have been duly completed. Also, we express our
sincere thanks to Mr. S.D.Muley (HOD Computer Department), besides, we
take this opportunity to express our sincere gratitude to the Principal
Dr.V.S.Bandal, G.P.Awasari for providing a good environment and facilities to
complete this micro-project. We would also like to thank all my colleagues who
have directly or indirectly guided and helped us in the preparation of this micro-
project.

Inamdar Parvej Ashpak


Lohakare Sakshi Sharad
Khandagale Pallavi
Shamrav.
INDEX

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:

Understanding of Object-Oriented Programming (OOP) Principles: Students will gain a deeper


understanding of OOP principles such as encapsulation, inheritance, and polymorphism by
implementing various classes and methods for the calculator functionality.

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

1 Formation of project group.

Parvej
Ashpak
Inamdar

Allocation of project title by


2
subject teacher.

Conduct the information search


3 about the project for requirement Sakshi
analysis of the project. Sharad
Lohakare

Procurement/Arrangement of
4 components and material requiredfor
project.

Pallavi
Shamrav
Khandagale
5 Actual projector assembling work

Testing calibration and prototype


6
development.

7 Report preparation. Parvej


Ashpak
Inamdar

8 Submission of project.
 Required Resources:-

Sr.no Name of Specification Qty Remarks


resources/materials
1 Operating system Windows 11 1 -

4 Laptop HP 1 -

5 Processor I5 11th Generation 1 -

6 RAM 8 GB 1 -

 Name of Team Members with Enroll No:-

Sr No Roll No Name Of Student Enrollment No


1 23CO267 Inamdar Parvej Ashpak 2210510404
2 23CO268 Lohakare Sakshi Sharad 2210510004
3 23CO269 Khandagale Pallavi Shamrav 2210510042

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.

 How the Applet works ?


In this project, Java applets are utilized to create the graphical user interface (GUI) for the calculator
application. An applet is a Java program that runs within a web browser or applet viewer, providing
interactive content. In this project, applets are employed to design and display the calculator's buttons,
text fields, and other GUI components. Event handling mechanisms within the applet code enable the
calculator to respond to user inputs, such as button clicks or keyboard inputs, and perform arithmetic
operations accordingly. This integration of applets facilitates the creation of an interactive and visually
appealing calculator interface that users can access directly within their web browser or applet viewer.

 Features :

Graphical User Interface (GUI):


1.Utilizes Java applets to create an interactive and visually appealing GUI.
2.Features buttons for digits (0-9), arithmetic operations (+, -, *, /), and other functions (e.g., memory
recall, clear).
3.Includes text fields to display input/output and provide feedback to the user.

Basic Arithmetic Operations:

1.Supports fundamental arithmetic operations: addition, subtraction, multiplication, and division.


2.Allows users to input numerical values and perform calculations using intuitive button inputs.

Memory Functions:

1.Incorporates memory functions such as memory recall and memory clear for storing and
2.manipulating temporary values during calculations.

Scientific Functions):

1.Optionally includes advanced scientific functions such as trigonometric functions, exponential


2.functions, and logarithmic functions for enhanced functionality.

3
Program Code:

import java.applet.*; import

java.awt.*; import

java.awt.event.*;

public class Calculator extends Applet implements ActionListener


{
String cmd[] = {"+", "-", "*", "/", "=", "C"};

int pv = 0;

String op = "";

Button b[] = new Button[16];

TextField t1 = new TextField(10);

4
public void init()

setLayout(new BorderLayout());

add(t1,"North");

t1.setText("0");

Panel p = new Panel();

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

for (int i = 0; i < 16; i++)

if (i < 10)

b[i] = new Button(String.valueOf(i));

else

b[i] = new Button(cmd[i % 10]);

b[i].setFont(new Font("Arial", Font.BOLD, 25));

5
p.add(b[i]);

add(p, "Center");

b[i].addActionListener(this);

public void actionPerformed(ActionEvent ae)

int res = 0;

String cap = ae.getActionCommand();

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;

else if (op == "-")

res = pv - cv;

else if (op == "*")

res = pv * cv;

7
else if (op == "/")

res = pv / cv;

t1.setText(String.valueOf(res));

else if (cap.equals("+") || cap.equals("-") || cap.equals("*") || cap.equals("/"))

pv = cv;

op = cap;

t1.setText("0");

else

8
int v = cv * 10 + Integer.parseInt(cap);

t1.setText(String.valueOf(v));

/*

<applet code="Calculator.class" width=401 height=391>

</applet>

*/
Output :

You might also like