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

java report

Uploaded by

dikshapoptani1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

java report

Uploaded by

dikshapoptani1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

MICRO PROJECT

Academic year
2023-2024

SCIENTIFIC CALCULATOR

Program: Computer Engineering Program code: CO4I-A

Course: Java Programming Course code: 22412

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.

Place: Chembur Enrollment No: 2200040380-382, 360

Date: Exam Seat No: 103432-434

Subject Teacher Head of the Department Principal

2
INDEX

Academic year: 2023-2024 Name of the faculty: Mr. Hira Rakhunde

Program code: CO4I -A Course & course code: JPR (22412)

Enrollment No.: 2200040380-382, 360 Roll No.: 61, 62, 63, 64

Name of the candidate: Diksha Poptani, Ved Jadhav, Siddharth Kundnani, Janhavi Deshmukh

Sr.No Content Page No.

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.0 Aim/ Benefits of the Micro-Project


1. The aim of our micro-project is to offer practical learning by applying object-orientedprinciples,
handling data, and creating user-friendly interfaces.
2. It enhances problem-solving skills, understanding of software development concepts.
3. Problem solving of users.
4. To understand the concepts of JAVA.
2.0 Course Outcomes Addressed

CO1. Develop programs using Object Oriented methodology in Java.


CO2. Apply the concept of inheritance for code reusability.
CO5. Develop programs for graphics and applet.

3.0 Proposed Methodology

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

SR. Planned Start Planned Name of Responsible


Details of activity Finish date
No. date Team Members

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

5.0 Resources Required


Sr. No. Equipment Name with Broad Specification Remark
if any

1. Desktop pc – Windows 11

2. Editor used – Sublime

3. Software – JDK 1.8

Name of Team Members with Roll Nos:


61 Diksha Poptani
62 Ved Jadhav
63 Siddharth Kundnani Mr. Hira Rakhunde
64 Janhavi Deshmukh Name and Signature of Course Teacher
5
Annexure – II
Micro-Project Report

SCIENTIFIC CALCULATOR

1.0 Rationale

Java is a popular, high-level, object-oriented programming language that was originally


developed by Sun Microsystems and later acquired by Oracle Corporation. It is designed to be
platform independent, which means that Java code can run on any operating system that has a
Java Virtual Machine (JVM) installed. Java is known for its simplicity, reliability, and security
features. It has a syntax that is similar to C++ and is easy to learn for programmers who are
already familiar with that language. Java programs are compiled into bytecode, which can be
executed by any computer that has a JVM installed. This makes Java highly portable and allows
it to be used for a wide variety of applications. Java has a large standard library, which provides
developers with a rich set of tools for building applications. It is also highly extensible, with
numerous open-source libraries and frameworks available for use.

2.0 Aim of the Micro-Project


1. The aim of our micro-project is to offer practical learning by applying object-orientedprinciples, handling
data, and creating user-friendly interfaces.
2. It enhances problem-solving skills, understanding of software development concepts.
3. Problem solving of users.
4. To understand the concepts of JAVA.

3.0 Course Outcomes Addressed


CO1. Develop programs using Object Oriented methodology in Java.
CO2. Apply the concept of inheritance for code reusability.
CO5. Develop programs for graphics and applet.

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:

• Basic arithmetic operations (addition, subtraction, multiplication, division).


• Decimal point functionality for floating-point calculations.
• Clear (C) button to reset the calculator.
• Trigonometric functions (sin, cos, tan) for angular calculations.
• Error handling for zero division.

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.*;

//<applet code = "ScientificCalculator.class" width = 800 height = 800></applet>

public class ScientificCalculator extends Applet implements ActionListener {


TextField inp;

public void init() {


setBackground(Color.white);
setLayout(null);
int i;
inp = new TextField();
inp.setBounds(150, 100, 250, 50);
this.add(inp);
Button button[] = new Button[10];
for (i = 0; i < 10; i++) {
button[i] = new Button(String.valueOf(9 - i));
button[i].setBounds(150 + ((i % 3) * 50), 150 + ((i / 3) * 50), 50, 50);
this.add(button[i]);
button[i].addActionListener(this);
}
Button dec = new Button(".");
dec.setBounds(200, 300, 50, 50);
this.add(dec);
dec.addActionListener(this);

Button clr = new Button("C");


clr.setBounds(250, 300, 50, 50);
this.add(clr);
clr.addActionListener(this);

Button operator[] = new Button[8];


operator[0] = new Button("/");
operator[1] = new Button("*");
operator[2] = new Button("-");
operator[3] = new Button("+");

9
operator[4] = new Button("=");
operator[5] = new Button("sin");
operator[6] = new Button("cos");
operator[7] = new Button("tan");

for (i = 0; i < 4; i++) {


operator[i].setBounds(300, 150 + (i * 50), 50, 50);
this.add(operator[i]);
operator[i].addActionListener(this);
}
operator[4].setBounds(350, 300, 50, 50);
this.add(operator[4]);
operator[4].addActionListener(this);

operator[5].setBounds(350, 150, 50, 50);


this.add(operator[5]);
operator[5].addActionListener(this);

operator[6].setBounds(350, 200, 50, 50);


this.add(operator[6]);
operator[6].addActionListener(this);

operator[7].setBounds(350, 250, 50, 50);


this.add(operator[7]);
operator[7].addActionListener(this);
}

String num1 = "";


String op = "";
String num2 = "";

public void actionPerformed(ActionEvent e) {


String button = e.getActionCommand();
char ch = button.charAt(0);
if (ch >= '0' && ch <= '9' || ch == '.') {
if (!op.equals(""))
num2 = num2 + button;
else
num1 = num1 + button;

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.

6.0 Actual Resources Used

Sr. No. Equipment Name with Broad Specification Remark


if any

1. Desktop pc – Windows 11

2. Editor – Sublime

3. Software – jdk 1.8

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.

9.0 Application of this Micro-Project.


o Education: The scientific calculator aids students and educators in mathematics and science
classrooms, facilitating learning and teaching of complex concepts such as trigonometry and calculus.

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

Cos addressed by Micro Project:


CO1. Develop programs using Object Oriented methodology in Java.
CO2. Apply the concept of inheritance for code reusability.
CO5. Develop programs for graphics and applet.

Sr. No Characteristic to be Poor Average Good Excellent Sub Total


. assessed (Marks 1-3) (Marks 4-5 ) (Marks 6-8) ( Marks 9-10)
(A) Process and Product Assessment (Convert Above Total marks out of 6 Marks)
1 Relevance to the course

2 Information Collection

3 Project Proposal
Completion of the Target
4
as per project proposal

Analysis of Data and


5
representation

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

Comments / Suggestions about teamwork / leadership / interpersonal communication (if any)


………………………………………………………………………………………………
……………………………………………………………………………………………..
……………………………………………………………………………………………..
……………………………………………………………………………………………..

Name and designation of the Teacher: Mr. Hira Rakhunde (Lecturer)

Dated Signature:

*********************

18

You might also like