Ajp Micro Project
Ajp Micro Project
Submitted by
Asma Inamdar
JSPM’s
JAYAWANTRAO SAWANT POLYTECHNIC, Handewadi Road, Hadapsar,
Pune-28
Department of Information Technology
Affiliated to
Maharashtra State
Board of Technical Education
Certificate
This is to certify that Ms. Asma Inamdar with Roll No- 36 has successfully completed Micro-project in course
AJP(22517) for the academic year 2024-25 as prescribed in the 'Assessment Manual' during his tenure of
completing Fifth Semester of Diploma Programme in Information Technology from institute, Jayawantrao Sawant
Polytechnic with institute code 0711.
Group Details:
INTRODUCTION
2
CONCLUSION
3
5 SOURCES USED
PROJECT ABSTRACT
The Scientific Calculator is an application for assisting a calculation in university. The system
would provide basic set of features to addition, Substruction, Multiplication, Division and
manage check in specifications for the systems based on the client’s statement of need.
Scientific calculators are used widely in situations that require quick access to certain
mathematical functions, especially those that were once looked up in mathematical tables, such
as trigonometric functions or logarithms. They are also used for calculations of very large or very
small numbers, as in some aspects of astronomy, physics, and chemistry. In certain contexts such
as higher education, scientific calculators have been superseded by graphing calculators, which
offer a superset of scientific calculator functionality along with the ability to graph input data and
write and store programs for the device.
There is also some overlap with the financial calculator market. They are very often required for
math classes from the junior high school level through college, and are generally either permitted
or required on many standardized tests covering math and science subjects; as a result, many are
sold into educational markets to cover this demand, and some high-end models include features
making it easier to translate a problem on a textbook page into calculator input, e.g. by providing
a method to enter an entire problem in as it is written on the page using simple formatting tools.
Objectives:-
1.To save time consumption.
A scientific calculator is a type of electronic calculator, usually but not always handheld,
designed to calculate problems in science, engineering, and mathematics. They have completely
replaced slide rules in traditional applications, and are widely used in both education and
professional settings.
They are very often required for math classes from the junior high school level through
college, and are generally either permitted or required on many standardized tests covering math
and science subjects; as a result, many are sold into educational markets to cover this demand,
and some high-end models include features making it easier to translate a problem on a textbook
page into calculator input, e.g. by providing a method to enter an entire problem in as it is written
on the page using simple formatting tools.
Scientific calculators are used widely in situations that require quick access to certain
mathematical functions, especially those that were once looked up in mathematical tables, such
as trigonometric functions or logarithms. They are also used for calculations of very large or very
small numbers, as in some aspects of astronomy, physics, and chemistry.
In certain contexts such as higher education, scientific calculators have been superseded by
graphing calculators, which offer a superset of scientific calculator functionality along with the
ability to graph input data and write and store programs for the device. There is also some
overlap with the financial calculator mar.
1.Classes: Class is a group of data members (variables and arrays) and member functions
(methods).
Syntax:
Class class_name
Data members;
Member methods;
2.Objects: Object is an entity having its own properties and behaviour. For example, flower is an
object having properties such as colour, fragrance, etc.
Syntax:
Syntax:
packagepackage_name;
importpackage_name;
or
importpackage_name.class_name;
or
4. Jlable: The object of JLabel class is a component for placing text in a container. It is used to
display a single line of read only text.
The text can be changed by an application but a user cannot edit it directly. It inherits
JComponent class
Syntax:
5. Boolean: Boolean function is used to state as true or false for the following operations.
Syntax:
System.out.println(isJavaFun);
System.out.println(isFishTasty);
6.JButton: The JButton class is used to create a labelled button that has platform independent
implementation.
The application result in some action when the button is pushed. It inherits Abstract Button class.
Syntax:
f.add(b);
f.setSize(400,400);
JFrame works like the main window where components like labels, buttons, textfields are added
to create a GUI.
Unlike Frame, JFrame has the option to hide or close the window with the help of set Default
Close Operation(int) method.
Syntax:
b.setBounds(50,100,95,30);
f.add(b);
f.setSize(400,400);
8. Dark Theme:
1. It have tabs.
2. It also looks cleaner app for programmers and developers supporting app programming
languages.
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.lang.Math;
public ScientificCalculator() {
setTitle("Scientific Calculator");
setSize(400, 500);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new BorderLayout());
isNewInput = true;
display.setEditable(false);
display.setHorizontalAlignment(JTextField.RIGHT);
add(display, BorderLayout.NORTH);
String[] buttonLabels = {
};
button.addActionListener(new ButtonClickListener());
buttonPanel.add(button);
}
// Add the button panel to the main window
add(buttonPanel, BorderLayout.CENTER);
@Override
if ("C".equals(command)) {
input.setLength(0);
display.setText("");
isNewInput = true;
} else if ("=".equals(command)) {
try {
display.setText(String.valueOf(result));
input.setLength(0);
isNewInput = true;
display.setText("Error");
} else if ("sqrt".equals(command)) {
// Square root
try {
display.setText(String.valueOf(result));
input.setLength(0);
isNewInput = true;
display.setText("Error");
} else if ("pow".equals(command)) {
// Exponentiation
try {
display.setText(String.valueOf(result));
input.setLength(0);
isNewInput = true;
display.setText("Error");
} else if ("log".equals(command)) {
try {
display.setText(String.valueOf(result));
input.setLength(0);
isNewInput = true;
} catch (Exception ex) {
display.setText("Error");
} else if ("sin".equals(command)) {
try {
display.setText(String.valueOf(result));
input.setLength(0);
isNewInput = true;
display.setText("Error");
} else if ("cos".equals(command)) {
try {
display.setText(String.valueOf(result));
input.setLength(0);
isNewInput = true;
display.setText("Error");
} else if ("tan".equals(command)) {
try {
double result = Math.tan(Math.toRadians(Double.parseDouble(input.toString())));
display.setText(String.valueOf(result));
input.setLength(0);
isNewInput = true;
display.setText("Error");
} else {
if (isNewInput) {
input.setLength(0);
isNewInput = false;
input.append(command);
display.setText(input.toString());
try {
} catch (Exception e) {
return Double.NaN;
SwingUtilities.invokeLater(new Runnable() {
@Override
new ScientificCalculator().setVisible(true);
});
}
Output :
By performing operation:
ADVANTAGE & DISADVANTAGE
⮚ Advantages
⮚ Disadvantages
In this work we have developed a calculator for exact real number computation and performed a
theoretical analysis of the algorithms and experimented on their implementation. We began by
defining two representations of reals in the range [-1,1] using streams of digits. These were then
extended to represent real numbers on the whole real line using a (mantissa, exponent) style
representation.
We showed how to convert between these representations, how to convert decimal numbers into
a signed binary representation, and how to convert a finite portion of the signed binary
representation back into decimal. Algorithms for the basic arithmetic operations were
implemented for these representations.
A number of different techniques are used to obtain these algorithms, including exploiting the
relationship between the list operation `cons' and numerical average, using certain identities, and
analyzing of the range of possible values of a stream starting with a given digit or sequence of
digits. We developed an algorithm for the direct multiplication of two streams of signed binary
digit.
This is a more complex operation than the multiplication of dyadic digit streams, but avoids the
problem of dyadic digit swell which can be observed if the dyadic digit multiplication is used to
compute iterations of the logistic map, for example, and which can cripple performance.
WEEKLY PROGRESS REPORT
MICRO PROJECT
10 10th Seminar
SOURCES USED :
I. Microsoft word
II. Computers with internet connectivity
ANEEXURE II
Evaluation Sheet for the Micro Project
Mrs.S.V.Kothwal
(Signature of Faculty)