java report
java report
Academic year
2023-2024
SCIENTIFIC CALCULATOR
1
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
Certificate
This is to certify that Ms. Diksha Poptani, Ved Jadhav, Siddharth Kundnani, Janhavi Deshmukh Roll
No.61, 62, 63, 64 of 4th Semester of Diploma in Computer Engineering of Institute, V.E.S. Polytechnic
(Code: 0004) has completed the Micro Project satisfactorily in Subject Java Programming
(22412) for the academic year 2023- 2024 as prescribed in the curriculum.
2
INDEX
Name of the candidate: Diksha Poptani, Ved Jadhav, Siddharth Kundnani, Janhavi Deshmukh
1 Project Proposal 4
2 Action plan 5
3 Resource required 5
4 Introduction 6
5 Actual Procedure 13
6 Output 14
7 Skill developed 17
8 Evaluation sheet 19
3
Annexure – I
Micro-Project Proposal
SCIENTIFIC CALCULATOR
1. Discussion about the topic with guides and among group members.
2. Literature Survey.
3. Submission of project proposal.
4. Information collection.
5. Analysis of Data.
6. Compilation of the content.
7. Representation.
8. Editing and revising the content.
9. Report Preparation.
4
4.0 Action Plan
All Members
Set Up Meetings
1 08/01/24 19/01/24
All Members
Take Notes
2 29/01/24 02/02/24
All Members
3 Tracking/Time Objectives 05/02/24 09/02/24
All Members
4 Create An Outline 16/02/24 23/02/24
All Members
5 Prepare A Code 16/02/24 01/03/24
All Members
6 Prepare Final Project report 04/03/24 11/03/24
All Members
7 Presentation 15/03/24 18/03/24
All Members
Demonstration of project and final
8 22/03/24 01/04/24
submission
1. Desktop pc – Windows 11
SCIENTIFIC CALCULATOR
1.0 Rationale
6
4.0 Literature Review
In today's digital era, calculators have become an indispensable tool for a wide range of professionals and
students alike. From basic arithmetic to complex mathematical calculations, calculators simplify and
expedite tasks. Among these, scientific calculators stand out for their ability to perform advanced
mathematical functions.
Implementation:
The scientific calculator is implemented as a Java applet, leveraging Java's Abstract Window Toolkit
(AWT) for GUI (Graphical User Interface) components. AWT provides a set of tools for creating graphical
user interfaces, allowing developers to design interactive applications. The calculator interface consists of
text fields, buttons for digits and operations, and event listeners to handle user interactions.
Features:
Functionalities:
• Users can input numbers and perform arithmetic operations using buttons.
• Trigonometric functions operate on the input value in degrees.
• The calculator displays results with appropriate precision and error messages when necessary.
Use Cases:
• Education: Students and educators can use the scientific calculator for learning and teaching
complex mathematical concepts, including trigonometry and calculus.
• Engineering and Sciences: Professionals in engineering, physics, chemistry, and other scientific
disciplines can utilize the calculator for data analysis, simulations, and problem-solving.
• Finance: Finance professionals and individuals can perform financial calculations such as compound
interest, present value, and amortization.
7
Java Concepts Used:
• AWT (Abstract Window Toolkit): AWT is used for creating the graphical user interface, providing
classes and methods for GUI components like buttons and text fields.
• Event Handling: Java's event-driven architecture is employed to handle user interactions with the
calculator interface. ActionListeners are attached to buttons to respond to user clicks.
• Data Types and Operators: The calculator utilizes primitive data types (e.g., double) and operators
(+, -, *, /) for arithmetic computations.
• Exception Handling: Exception handling is implemented to address potential errors, such as zero
division, ensuring smooth operation of the calculator.
• Math Class: The Math class from the java.lang package is used to perform trigonometric
calculations (sin, cos, tan) by invoking its predefined methods.
8
CODE:
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
9
operator[4] = new Button("=");
operator[5] = new Button("sin");
operator[6] = new Button("cos");
operator[7] = new Button("tan");
10
inp.setText(num1 + op + num2);
} else if (ch == 'C') {
num1 = op = num2 = "";
inp.setText("");
} else if (ch == '=') {
if (!num1.equals("") && !num2.equals("")) {
double temp;
double n1 = Double.parseDouble(num1);
double n2 = Double.parseDouble(num2);
if (n2 == 0 && op.equals("/")) {
inp.setText(num1 + op + num2 + " = Zero Division Error");
num1 = op = num2 = "";
} else {
if (op.equals("+"))
temp = n1 + n2;
else if (op.equals("-"))
temp = n1 - n2;
else if (op.equals("/"))
temp = n1 / n2;
else
temp = n1 * n2;
inp.setText(num1 + op + num2 + " = " + temp);
num1 = Double.toString(temp);
op = num2 = "";
}
} else {
num1 = op = num2 = "";
inp.setText("");
}
} else if (button.equals("sin") || button.equals("cos") || button.equals("tan")) {
if (!num1.equals("")) {
double n1 = Double.parseDouble(num1);
double result;
if (button.equals("sin"))
result = Math.sin(Math.toRadians(n1));
else if (button.equals("cos"))
result = Math.cos(Math.toRadians(n1));
else
result = Math.tan(Math.toRadians(n1));
11
inp.setText(button + "(" + num1 + ") = " + result);
num1 = Double.toString(result);
}
} else {
if (op.equals("") || num2.equals(""))
op = button;
else {
double temp;
double n1 = Double.parseDouble(num1);
double n2 = Double.parseDouble(num2);
if (n2 == 0 && op.equals("/")) {
inp.setText(num1 + op + num2 + " = Zero Division Error");
num1 = op = num2 = "";
} else {
if (op.equals("+"))
temp = n1 + n2;
else if (op.equals("-"))
temp = n1 - n2;
else if (op.equals("/"))
temp = n1 / n2;
else
temp = n1 * n2;
num1 = Double.toString(temp);
op = button;
num2 = "";
}
}
inp.setText(num1 + op + num2);
}
}
}
12
5.0 Actual Procedure Followed
1. Discussion about the topic with guides and among group members.
2. Literature Survey.
3. Submission of project proposal.
4. Information collection.
5. Analysis of Data.
6. Compilation of the content.
7. Representation.
8. Editing and revising the content.
9. Report Preparation.
1. Desktop pc – Windows 11
2. Editor – Sublime
13
7.0 Outputs of the Micro-Projects:
14
8.0 Skill Developed / learning out of this Micro-Project
The following skills were developed while performing and developing this micro-project:
1. Designing: Designing of microproject with minimum required resources and at low cost.
2. Teamwork: Learned to work in a team and boost individual confidence.
3. Time Management: Timely completion of microproject as scheduled.
4. Data Analysis: Interpretation of data
5. Problem-solving: Develop good problem-solving habits.
6. Technical writing: Preparing a report of the proposed plan and final report.
o Scientific Research: Professionals in scientific research leverage the calculator for data analysis,
modeling, and experimentation, enabling precise calculations and simulations across various
disciplines.
o Engineering Design: Engineers utilize the calculator for design validation, analysis, and optimization
tasks in fields ranging from aerospace to electronics, enhancing efficiency and accuracy in technical
decision-making processes.
15
Annexure – III
Suggested Rubric for Assessment of Micro-Project
S. Characteristic to Poor Average Good Excellent
No. be assessed ( Marks 1 - 3 ) ( Marks 4 - 5 ) ( Marks 6 - 8 ) ( Marks 9- 10 )
Relevance to the Relate to very Related to some Take care of at-least Take care of more
1
course few LOs LOs one CO than one CO
Not more than At-least 5
Literature review About 10 relevant
two sources relevant At –least 7 relevant
2 /information sources, most
very old sources, at sources, most latest
collection latest
reference least
2 latest
Completion of the
Completed less Completed 50 Completed 60 to Completed more
3 Target as per
than 50% to 60% 80% than 80 %
project proposal
Sufficient and
appropriate Sufficient and
Data neither Enough data
enough data appropriate enough
Analysis of Data organized nor collected and
generated but data generated which
4 and representation presented well sufficient and
not organized is organized and but
presenting data.
and not not used.
presented well.
Well assembled
Just assembled Well assembled and
with proper
Quality of Incomplete and some code functioning parts.
functioning
5 Prototype/Model Programming is not But no creativity in
parts..
code functioning design and use of
Creativity in
well. graphics function
design and use of
graphics function
Nearly
Very short,
sufficient and Detailed, correct and
Details about Very detailed,
correct details clear description of
methods, and correct, clear
about methods, methods and
6 Report Preparation conclusions description of
and conclusion. Conclusions.
omitted, methods, and
but clarity is Sufficient Graphic
some details conclusions.
not there in Description.
are wrong
presentation.
Major Includes major
information is information but Includes major Well organized,
Presentation of the not included, not well information and well includes major
7
micro project information is organized and organized but not information ,well
not well not presented presented well presented
organized. well
Replied to
Could not
considerable
reply to Replied properly to Replied most of
number of
8 Viva considerabl considerable number the questions
questions but
e number of of question. properly
not very
question.
properly
16
Annexure – IV
Micro Project Evaluation Sheet
Name of Student: Diksha Poptani, Ved Jadhav, Siddharth Kundnani, Janhavi Deshmukh
Enrollment No: 2200040380-382, 360
Name of Program: CO4I-A Semester: 4th
Course Title: Java Programming Course Code: 22412
Title of the Micro-Project: Scientific Calculator
2 Information Collection
3 Project Proposal
Completion of the Target
4
as per project proposal
6 Quality of Prototype/Model
7 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 marks)
8 Presentation
9 Defense
17
Process and Product Assessment (6 Individual Presentation / Viva (4 Total Marks (10
Roll No. Marks) Marks) marks)
61
62
63
64
Dated Signature:
*********************
18