Professional Documents
Culture Documents
In Partial Fulfillment
of the Requirements for the subject
BA0007L - Computer Programming 1 Laboratory
By:
PROGRAMMERZ
1. POLICARPIO, JOHN PAUL M. - Leader
2. VILLAMOR, RAMON ANTONIO Z. - Member
3. VERA CRUZ, CLARENCE JUSTIN P. - Member
4. DIMAL, KIMBERLY ANNE - Member
Submitted to:
Mr. Rene Christopher Tio
Date of Submission:
March 31, 2021
TABLE OF CONTENTS
Page
Introduction ………….…………………………… 4
Schedule: Date:
Project title:
A Case Study of Currency Converter by using Java
TOTAL
Evaluated by:
________________________
Money is very important to almost all people in every country. Also, it is the reason on how
a country can become successful and wealthy. Money can be used to have a better quality of success
and it cycles around in businesses, education, especially from the jobs of every people. Every
country in the world has currency exchange rate where it helps to determine the economics’ health
of that country and the lives of the people who resides in it.
Currency Converter can be seen by searching in google. Also, it can be seen in airports,
banks, etc. People all around the world travel and exchange currencies all the time to do business,
tour, buy cheaper things and much more. It is at most important to know the exchange rates
especially to businessmen who regularly purchase materials from other countries because the
exchange rates determine how much you would need to pay, more importantly the exchange rates
increase or decreases overtime so the converter should be latest as possible. Tourists traveling to
other countries would need to be assisted on their currency exchange rates in order to know on how
much would their cash (from where they are from) be converted to the country they are going to.
The group came up with the idea to build a program using Java that converts the currencies around
the world to help assist people around the world in exchanging their currencies. While making this
currency converter, the group have some difficulty in converting it because they don't know how to
convert it accurately. Also, they don't know what is the right formula. The solution that they came
up is that what if try to use the amount in pounds and multiply it to the value that we want to
convert. In that way, the group finish the program successfully.
General objective:
To develop a Currency Converter using Java structures to convert currency in the
different countries in the world.
Specific objectives:
• To create a converter that will show accurate conversion of the latest currency.
• To apply what we learned in computer programming in making a currency
converter with well-defined functions.
• To engage in a group project to create a case study.
The program used 2 operations which is the multiplication (*) and the division (/). These
operations were used to create a formula that will convert the currency. Also, the group used their
knowledge and skills from the educational modules given by the school of FEU Diliman College in
order to proceed with efficiency. These include using different variables like string, int, double and
switch case statement. The group also acquired the current currency of the different countries in
order to follow the formula used in the program.
BEGIN
Menu Choice –
Currency
Converter
Enter Amount
Valid
Number? ERROR
Choose the
foreign currency
Enter numbers to
the formula
Foreign currency
=
home currency
x
exchange rate
OUTPUT RESULT
import javax.swing.JOptionPane;
/**
* Creates new form CurrencyConv
*/
public CurrencyConv() {
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
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
pack();
}// </editor-fold>
};
int position = firstcountry.getSelectedIndex();
first.setText(currencyUnits[position]);
}
String[] currencyUnitss = {
"Units",
"US Dollar",
"Brazilian Real",
"Canadian Dollar",
};
int position = secondcountry.getSelectedIndex();
second.setText(currencyUnitss[position]);
}
switch(firstcountry.getSelectedItem().toString())
{
case "USA" : amountInPounds = amountToChange / USDollar; break;
case "Brazil" : amountInPounds = amountToChange / BrazilianReal; break;
case "Canada" : amountInPounds = amountToChange / CanadianDollar; break;
case "Kenyan" : amountInPounds = amountToChange / KenyanShilling; break;
case "Indonesia" : amountInPounds = amountToChange / IndonesianRupiah; break;
case "India" : amountInPounds = amountToChange / IndianRupee; break;
case "Philippine" : amountInPounds = amountToChange / PhilippinePeso; break;
case "Pakistan" : amountInPounds = amountToChange / PakistaniRupee; break;
default:amountInPounds = 0.0;
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<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.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(CurrencyConv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(CurrencyConv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(CurrencyConv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(CurrencyConv.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
1x1 1x1
ID PIC ID PIC
OBJECTIVE: OBJECTIVE:
• Proper Mindset and Balance My objective is to help my group mates in
• Commitment to Improved the creation of our project, and to clarify my
Physical Health knowledge in coding if I understand it clearly and
• Career Passion and Personal improve myself alongside my group mates.
Satisfaction
PERSONAL INFO
• Financial Stability
• Nickname : Cee
• Service and Social Responsibility
• Age : 20
• Continuing Education • Birthday : December 01, 2000
• Birthplace : Novaliches
PERSONAL INFO
• Religion : Catholic
• Nickname : JP, Poli, John Paul
• Contact no. : 0919 901 0915
• Age : 18
• Email Add : 202010152@feudiliman.edu.ph
• Birthday : April 08, 2002
• Birthplace : San Mateo, Rizal
EDUCATIONAL BACKGROUND
• Religion : Catholic
• College : BSBA MMMD
• Contact no. : 0910 993 6710
FEU Diliman
• Email Add : 202010054@feudiliman.edu.ph
2020 - present
•
• High school : Saint Vincent Institute of Arts and
EDUCATIONAL BACKGROUND Sciences
• College : BSBA Financial Management & Quezon City
Business Analyst 2013 - 2017
FEU Diliman
2020 - present
• High school : Nuestra Señora De Aranzazu
SPECIAL SKILLS & INTERESTS
Parochial School • Driving
OBJECTIVE: OBJECTIVE:
Businessman To have a successful program where I can use and
improve my skills and learn new knowledge to
PERSONAL INFO help my fellow groupmates to improve
• Nickname : Ram themselves and also for the development of the
• Age : 19 project.
• Birthday : April 3, 2001
• Birthplace : MCU PERSONAL INFO
• Religion : Born Again • Nickname : Kim
• Contact no. : 0977 480 2116 • Age : 21
• Email Add : rammvilammorr@gmail.com • Birthday : August 06, 1999
• Birthplace : Las Piñas City
EDUCATIONAL BACKGROUND • Religion : Catholic
• College : BSBA FMBA • Contact no. : 0939 912 9485
FEU Diliman • Email Add : kdimal8699@gmail.com
2020 - present
• High school : Notre Dame of Greater EDUCATIONAL BACKGROUND
Manila • College : BSBA Operation and Services
Management
SPECIAL SKILLS & INTERESTS FEU Diliman
2020 - present
• Cycling
• High school : STI College Novaliches
• Sports
Quezon City
• Learning
2018 - 2020