[go: up one dir, main page]

0% found this document useful (0 votes)
2K views16 pages

Project Currency Converter Java

The document is a project report submitted by 4 students for their Bachelor of Computer Applications degree. It includes sections like the abstract, existing system, proposed system, modules, flow diagram, source code, outputs, and conclusion. The proposed system is a currency converter project built in Java with a graphical user interface that allows converting between currencies like Rupees, Dollar, Pound, Euro, and Kuwaiti Dinar. It takes the currency code and amount as input and displays the converted values in other currencies.

Uploaded by

HARESH.S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views16 pages

Project Currency Converter Java

The document is a project report submitted by 4 students for their Bachelor of Computer Applications degree. It includes sections like the abstract, existing system, proposed system, modules, flow diagram, source code, outputs, and conclusion. The proposed system is a currency converter project built in Java with a graphical user interface that allows converting between currencies like Rupees, Dollar, Pound, Euro, and Kuwaiti Dinar. It takes the currency code and amount as input and displays the converted values in other currencies.

Uploaded by

HARESH.S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

PROJECT REPORT

Submitted by
ARUNRAGAV S.G
Register No.21105075
PREMNATH.R
Register No.21105105
KISHORE KUMAR.V
Register No.21105095
SURENDHAR. R
Register No.21105126

in partial fulfillment for the award of the degree


of
BACHELOR OF COMPUTER APPLICATIONS
in
DEPARTMENT OF COMPUTER APPLICATIONS

SRI RAMAKRISHNA COLLEGE OF ARTS & SCIENCE

(AUTONOMOUS)
COIMBATORE – 641 006

JUNE-2022
SRI RAMAKRISHNA COLLEGE OF ARTS & SCIENCE
COIMBATORE 641006

BONAFIDE CERTIFICATE

Certified that this project Report titled “CURRENCY CONVERTOR IN JAVA” is


the bonafide work of SG.ARUNRAGAV(RegNo:21105075), R.PREMNATH(Reg
No:21105105) ,R.SURENDHAR(Reg No:21105126), V.KISHORE KUMAR (Reg
No:21105095), who carried out the work under mysupervision.

-------------------------------------- ------------------------------------
SIGNATURE OF THE GUIDE SIGNATURE OF THE HOD

Submitted for the Project viva voce examination held on

----------------------------------- -------------------------------------
INTERNAL EXAMINER EXTERNAL EXAMINER
ACKNOWLEDGEMENT

We express our heartfelt thanks to Sri D.


Lakshminarayanasamy, Managing Trustee and Sri R. Sundar,
Joint Managing Trustee of SNR Sons Charitable Trust for having
providedus ample facilities to undertake this project.

. We express our gratitude to Dr. B.L. Shivakumar, Principal,


Sri Ramakrishna College of Arts and Science for his continuous
encouragement to complete the project successfully.

We are grateful to Dr. D. Hari Prasad, HOD and Dr. S. Gomathi


@ Rohini,Project Coordinator of Department of Computer Applications
for their unlisted guidance and encouragement to accomplish this
project.

We also express our thanks to other staff for their help and
constant supporttocomplete the project.

We have great pleasure in thanking our parents and friends for


their inspiration and encouragement. We express our gratitude to
various authors, whose works we referred to carryout this project.
S.NO CONTENTS PAGE NO

1 ABSTRACT 1
2 EXISTING SYSTEM 2
3 PROPOSED SYSTEM 2
4 MODULES 3
5 FLOW DIAGRAM 4
6 SOURCE CODE 5-7
7 OUTPUT 8-10
8 CONCLUSION 11
ABSTRACT

Currency converter in java:Currency converter is a


mini project in Java Programming. It provides a web-
based interface for exchanging money from one
currency to another currency. In this article, we’ll see
how to make a currency converter which includes
conversion between Rupees, Dollar, Pound, Euro and
Kuwaiti dinar.
EXISTING SYSTEM

The Currency Converter Using Java always have the most


up-to-date rate of exchange, leaving no opportunity for errors.
To the best of our knowledge, no currency exchange or
transaction can be completed without the use of a good
currency converter.

PROPESED SYSTEM

The Currency Converter Project In Java With Source


Code is a simple desktop application made using the
Java programming language. We may also create highly
fascinating application with the Java programming
language. The Currency Converter is one of them. The
project system file comprises resource files as well as a
Java script. The User Interface of the system are
smooth, and simple.

This Code For Currency Converter In Java includes a


tutorial and a code development guide. This is a simple
and basic-level little project for learning purposes.
Currency Converter is open source, so you can
download the zip file and change it to fit your needs.
You can also customize this project to meet your needs
and create a fantastic advanced-level project.
MODULES

Approach: To solve this problem, the following steps are


followed:

First, we need to create a frame using JFrame.


Then, create two labels, two textfields and three
buttons(the first button for rupees and the second button
is for the dollar) using JLabel, JTextField and JButton.
Name these components accordingly and set their
bounds.
Now, in order to perform the conversion on button click,
we need to add Event Handlers. In this case, we will add
ActionListener to perform an action method known as
actionPerformed in which first we need to get the values
from the text fields which is default as a “string”.
So, in order to perform mathematical operations, we
need to convert them into double data type using
Double.parseDouble(Object.getText()) and again
converting from double to string to place the final value
in the other text field using String.valueOf(object).
Finally, for changing the values, we use
Object.setText(object), the second object is for selecting
which field we want to replace.
FLOW DIAGRAM:
SOURCE CODE:

import java.util.*;
import java.text.DecimalFormat;
class Currency_Converter
{
public static void main(String[] args)
{
double rupee,dollar,pound,code,euro,KWD;
DecimalFormat f = new
DecimalFormat("##.###");
Scanner sc = new Scanner(System.in);
System.out.println("*** WelCome to Webeduclick
Currency Converter Project ***\nEnter the currency code
\n1:Rupees\n2:Dollar\n3:Pound\n4:Euro\n5:Kuwaiti
dinar");
code=sc.nextInt();
if(code == 1)
{
System.out.println("Enter amount in rupees:");
rupee = sc.nextFloat();
dollar = rupee / 75;
System.out.println("Dollar : "+f.format(dollar));
pound = rupee / 101;
System.out.println("Pound :
"+f.format(pound));
euro = rupee / 84;
System.out.println("Euro : "+f.format(euro));
KWD = rupee / 250;
System.out.println("Kuwaiti dinar :
"+f.format(KWD));
}
else if (code == 2)
{
System.out.println("Enter amount in dollar:");
dollar = sc.nextFloat();
rupee = dollar * 75;
System.out.println("Rupees :
"+f.format(rupee));
pound = dollar * 0.72;
System.out.println("Pound :
"+f.format(pound));
euro = dollar * 0.88;
System.out.println("Euro : "+f.format(euro));
KWD = dollar * 0.30;
System.out.println("Kuwaiti dinar :
"+f.format(KWD));
}
else if(code == 3)
{
System.out.println("Enter amount in Pound:");
pound = sc.nextFloat();
rupee = pound * 101;
System.out.println("Rupees :
"+f.format(rupee));
dollar = pound * 1.35;
System.out.println("Dollar : "+f.format(dollar));
euro = pound * 1.36;
System.out.println("Euro : "+f.format(euro));
KWD = pound * 0.4;
System.out.println("Kuwaiti dinar :
"+f.format(KWD));
}
else if(code == 4)
{
System.out.println("Enter amount in Euro:");
euro = sc.nextFloat();
rupee = euro * 84;
System.out.println("Rupees :
"+f.format(rupee));
dollar = euro * 1.12;
System.out.println("Dollar : "+f.format(dollar));
pound = euro * 0.73;
System.out.println("Pound :
"+f.format(pound));
KWD = euro * 0.34;
System.out.println("Kuwaiti dinar :
"+f.format(KWD));
}
else if(code == 5)
{
System.out.println("Enter amount in Kuwaiti
dinar:");
KWD = sc.nextFloat();
rupee = KWD * 250;
System.out.println("Rupees :
"+f.format(rupee));
dollar = KWD * 3.30;
System.out.println("Dollar : "+f.format(dollar));
pound = KWD * 2.5;
System.out.println("Pound :
"+f.format(pound));
euro = KWD * 2.94;
System.out.println("Euro : "+f.format(euro));
}
else
System.out.println("Invalid Code!")
}
}
Output-1:

Output-2:
Output-3:

Output-4;
Output-5;
CONCLUSION
The Java Project With Source Code is built fully in Java.
It has full-featured Graphical User Interface (GUI) with
all the functionalities

This Article is the way to enhance and develop our skills


and logic ideas which is important in practicing the Java
programming language which is most well known and
most usable programming language in many company.

You might also like