Professional Documents
Culture Documents
AJP Microproject (Prajwal)
AJP Microproject (Prajwal)
AJP Microproject (Prajwal)
NANDED
Information Technology
DepartmentAcademic year: 2023-
24
Microproject on
Currency Converter
Code: 22517
1|P a ge
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
This is to certify that Mr. PRAJWAL BHALERAO Roll No. 1540 of 5th
Semester of Diploma in Information technology of Institute,
GOVERNMENT POLYTECHNIC, NANDED (0020) has completed the
Micro Project satisfactorily in Subject- AJP for the academic year
2023-24 as prescribed in the curriculum.
Place : Nanded
Date :
Exam Seat No.: 358122
2|P a ge
ANEEXURE l
Evaluation Sheet for the Micro Project
Academic Year: 2023-24. Name of the Faculty: S.G. Munde
Course: AJP Course Code: 22517 Semester: V
Title of the Project: Currency Converter
(A)Practical outcome:
1) WAP to demonstrate use of components like
Label,TextField,TextArea,Button,Checkbox,RadioButton.
2)WAP to design a form using the components List and Choice .
Roll Student Name Marks out of 6 for Marks out of 4 for Total out
No. performance in group performance in of 10
activity oral/presentation
(D5 Col.8) (D5 Col.9)
(Signature of Faculty)
3|P a ge
WEEKLY PROGRESS REPORT
Currency Converter
1540-
4|P a ge
CONTENTS
5|P a ge
INTRODUCTION:
6|P a ge
Program:
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
public CurrencyConverter() {
frame = new JFrame("Currency Converter");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 200);
7|P a ge
JButton convertButton = new JButton("Convert");
gbc.gridx = 5;
panel.add(convertButton, gbc);
convertButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
convertCurrency();
}
});
frame.add(panel);
frame.setVisible(true);
}
8|P a ge
return 0.85;
} else if (fromCurrency.equals("USD") && toCurrency.equals("JPY")) {
return 110.0;
} else if (fromCurrency.equals("EUR") && toCurrency.equals("USD")) {
return 1.18;
} else if (fromCurrency.equals("EUR") && toCurrency.equals("JPY")) {
return 130.0;
} else if (fromCurrency.equals("JPY") && toCurrency.equals("USD")) {
return 0.0091;
} else if (fromCurrency.equals("JPY") && toCurrency.equals("EUR")) {
return 0.0077;
}
return 1.0;
}
9|P a ge
Output:
10 | P a g e
11 | P a g e
References:
https://www.tutorialspoint.com/
https://www.geeksforgeeks.org/
https://www.javatpoint.com/
Sources used:
(1) Laptop
(2) Mobile
(3) Internet
(4) Reference Book
12 | P a g e