Professional Documents
Culture Documents
Currency Converter
Semester :5th
This is certify that Mr. / Miss. Anurag Pawar,Sanika Patil,Farina Pathan, Firdos Pathan Roll No
(3142,3148,3149,3150)
Fifth semester of Diploma in computer Engineering of institute Government
Polytechnic, Nandurbar has completed the Micro Project satisfactorily in the
subject Advance Java (22517) for the Academic Year 2023-2024 as prescribed
in the curriculum.
2114320057
2114320058
2114320061
DATE: EXAM SEAT NO:
Seal of
Institution
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION,MUMBAI
Evaluation sheet for the Micro project
1 Abstract 4
2 Source Code 5
5 Conclusion 7
6 Evaluation Sheet 8
1. Abstract…
Currency converter (or currency exchange) is a mini project coded in Java programming
language. This simple application provides a web-based interface for exchanging/converting
money from one currency (say $) to another currency (say €).
Different countries use different currencies, and there is daily variation in these currencies
relative to one another. Those who transfer money from one country to another (one currency to
another) must be updated with the latest currency exchange rates in the market.
Currency converter mini project is built keeping this thing in mind. It is simply a calculator -like
app developed using Ajax, Java servlets web features. In this application, there is a regular
update about the currency of every country by which it displays the present currency market
value and conversion rate.
Such application can be used by any user, but it is mainly useful for business, shares,
and finance related areas where money transfer and currency exchange takes place on a daily
basis.
In this Project We Use Swing Components. Swing is a part of the JFC (Java Foundation Classes).
Building Graphical User Interface in Java requires the use of Swings. Swing Framework contains
a large set of components which allow a high level of customization and provide rich
functionalities, and is used to create window-based applications. Java swing components are
lightweight, platform-independent, provide powerful components like tables, scroll panels,
buttons, list, colour chooser, etc
2. Source Code
Currency converter
/*
*/
package Currency_Converter;
/**
*@
*/
String[] currencyUnits = {
"Units",
"US Dollar",
"Nigerian Naira",
"Brazilian Real",
"Canadian Dollar",
"Kenyan Shilling",
"Indonesian Rupiah",
"Indian Rupee",
"Philippine Pisco",
"Pakistani Rupee"
};
/**
*/
public CurrencyConverter() {
initComponents();
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
*/
@SuppressWarnings("unchecked")
t1 = new javax.swing.JTextField();
t2 = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("Currency Converter");
firstCountry.addItemListener(new java.awt.event.ItemListener() {
firstCountryItemStateChanged(evt);
});
firstCountry.addActionListener(new java.awt.event.ActionListener() {
});
secondCountry.addItemListener(new java.awt.event.ItemListener() {
secondCountryItemStateChanged(evt);
});
jButton1.setText("Convert Currency");
jButton1.addActionListener(new java.awt.event.ActionListener() {
jButton1ActionPerformed(evt);
}
});
jButton2.setText("Reset");
jButton2.addActionListener(new java.awt.event.ActionListener() {
jButton2ActionPerformed(evt);
});
jButton3.setText("Exit");
jButton3.addActionListener(new java.awt.event.ActionListener() {
jButton3ActionPerformed(evt);
});
secondCurrencyUnit.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
secondCurrencyUnit.setText("units");
firstCurrencyUnit.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
firstCurrencyUnit.setText("units");
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel1)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jButton1)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(firstCountry, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(t1)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel3)
.addComponent(t2))
.addComponent(secondCurrencyUnit, javax.swing.GroupLayout.PREFERRED_SIZE, 277,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jButton2)
.addComponent(jButton3)))
.addContainerGap(114, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jLabel3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(secondCountry))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
.addComponent(t2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2)
.addComponent(jButton3))
.addContainerGap(57, Short.MAX_VALUE))
);
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
pack();
}// </editor-fold>//GEN-END:initComponents
System.exit(0);
}//GEN-LAST:event_jButton3ActionPerformed
firstCountry.setSelectedIndex(0);
secondCountry.setSelectedIndex(0);
t1.setText("");
t2.setText("");
}//GEN-LAST:event_jButton2ActionPerformed
double amountChanged=0.0;
double amountInPounds=0.0;
switch(firstCountry.getSelectedItem().toString())
default:amountInPounds = 0.0;
switch(secondCountry.getSelectedItem().toString())
t2.setText(value);
}//GEN-LAST:event_jButton1ActionPerformed
}//GEN-LAST:event_firstCountryActionPerformed
firstCurrencyUnit.setText(currencyUnits[firstCountry.getSelectedIndex()]);
}//GEN-LAST:event_firstCountryItemStateChanged
secondCurrencyUnit.setText(currencyUnits[secondCountry.getSelectedIndex()]);
}//GEN-LAST:event_secondCountryItemStateChanged
/**
* @param args the command line arguments
*/
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
*/
try {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
java.util.logging.Logger.getLogger(CurrencyConverter.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
java.util.logging.Logger.getLogger(CurrencyConverter.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
java.util.logging.Logger.getLogger(CurrencyConverter.class.getName()).log(java.util.logging.Level.SEVERE,
null, ex);
//</editor-fold>
//</editor-fold>
java.awt.EventQueue.invokeLater(new Runnable() {
new CurrencyConverter().setVisible(true);
});
Output:
Literature Review & references:
Books references:
1) Java programming Language
Sites references:
1) www.google.com
2) www.javaTpoint
3) www.Geeksforgeeks
4) http://learnegene.blogspot.com
● Conclusion
3.00 3.30
3 7 / 9 /2023 30 min Literature Review
Pm Pm
4.00 6.00
4 11 / 9 /2023 2 hours Collection of Data
Pm Pm
3.00 3.30
5 1 / 10/2023 30 min Collection of Data
Pm Pm
3.30 4.30
6 1 / 10/2023 1 hour Discussion and Outline of Content
Pm Pm
2 / 10 /2023
3.00 4.00
7 1 hour Rough Writing of the Projects Contents
Pm Pm
3.00 4.00
9 5 / 10/2023 1 hour Final Completion of the Project
Pm Pm
45 min Seminar Presentation, viva-vice,
10
3.00 4.00 Assessment and Submission of Report
16 / 10/2023
Pm Pm
ANEXURE-II
Academic
Name of Guider: K.S.Patil
Year:-2023-2024
Sem :- Fifth Program Name : Advance Java
Course Name: : Course Code: 22517
Environmental Studies
(A)
MajorLearningOutcomesachievedbystudentsbydoingtheProject:
(B) (a) PracticalOutcomes:
(b) Using
(c) Outcomes (in Cognitive domain)
(d) Outcomes in AffectiveDom
(e) Comment/Suggestions about teamwork/leadership/interpersonal
Communication
(f) (f)
+ All the team members were co-operative and helped each other. The team members gave full
support. Rather, there was no mis-understanding among any of any of the teammembers.
Anurag Vijay
Pawar
Firdos Faridkha
Pathan
Farina Faridkha
Pathan
Sanika Shriram
Patil
( )
Teacher sign