0% found this document useful (0 votes)
60 views

Java Project Copied

The document describes a currency conversion program that allows users to select an input currency and amount and outputs the equivalent amount in other currencies like dollars, pounds, euros and yen using conversion rates. The program uses if/else statements to check the user's currency selection and calls the appropriate conversion formula. It outputs the converted amount and handles invalid inputs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Java Project Copied

The document describes a currency conversion program that allows users to select an input currency and amount and outputs the equivalent amount in other currencies like dollars, pounds, euros and yen using conversion rates. The program uses if/else statements to check the user's currency selection and calls the appropriate conversion formula. It outputs the converted amount and handles invalid inputs.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,

MUMBAI

A PROJECT REPORT ON
“Corrency Conversion”
DIPLOMA IN ELECTRONICS AND COMPUTER ENGINEERING
SUBMITTED BY
Mr. Musandi Apurv G.
Mr. Bhosale Deepankar A.
Mr. Mujawar Junaid I.
Mr. Kumbhar Shravan A.
Mr. Rajmane Paras A.
Mr. Patil Namdev G.

Under Guidence Of:

Prof. R. M. Mulla

DEPARTMENT OF ELECTRONICS AND COMPUTER ENGINEERING


SANT GAJANAN MAHARAJ RURAL POLYTECHNIC, MAHAGAON
ACADEMIC YEAR 2022-2023
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION,
MUMBAI (MSBTE)
SANT GAJANAN MAHARAJ RURAL HOSPITAL AND RESEARCH CENTER, MAHAGAON

“SANT GAJANAN MAHARAJ RURAL POLYTECHNIC”


A/P- MAHAGAON, SITE- CHINCHEWADI, TAL- GADHINGLAJ, DIST- KOLHAPUR

Certificate
This is certify that the following students of Fourth semester of Diploma Programme in
ELECTRONICS AND COMPUTER ENGINEERING of Institute SANT GAJANAN MAHARAJ RURAL
POLYTECHNIC, MAHAGAON-416503(CODE-0965) has completed Micro project on “Currency
Conversion.” satisfactory in subject JPR subject code:22412 for academic year 2022-2023 as prescribed
in the curriculum.
ROLL NO. ENROLLMENT NO. SEAT NO. NAME OF STUDENT

39 Mr. Musandi Apurv

01 Mr. Bhosale Deepankar

25 Mr. Mujawar Junaid

37 Mr. Kumbhar Shravan

34 Mr. Rajmane Paras

49 Mr. Patil Namdev

Date:

Prof. R. M. Mulla Prof. M. P. Patil Prof. D. B. Kesti


(Project Guide) (Head of Department) (Principal)
INDEX

SR.NO TITLE

1 ABSTRACT

2 INTRODUCTION

3 LITERATURE REVIW

4 COURSE OUTCOMES

5 PROGRAM

6 OUTPUT

7 ACTUAL RESOURCES REQUIRED

8 ADVANTAGES

9 DISADVANTAGES

10 APPLICATIONS

11 CONCLUSION

12 REFERENCES
• ABSTRACT :-

 In that Project we Represent the project of Currency Convertor and Implement the
program will then present a user menu of conversion types, converting the Currency
to Rupees, Dollar, Pound, Japanese Yen and Euro, according to the user’s selection.
The converted Currency will then be printed.
 Conversion of Currency is the conversion between different Currency for the User
defined quantity, typically through multiplicative conversion factors.
 An exchange rate is the rate at which one currency will be exchanged for another
currency. Currencies are most commonly national currencies, but may be sub-
national as in the case of Hong Kong or supra-national as in the case of the Euro.
 The exchange rate is also regarded as the value of one country's currency in
relation to another currency.

COURSE OUTCOMES :-
1) Develop a program using object-oriented methodology in java.
2) Apply concept of inheritance for code reusablity
3) Implement Exception handling
4) Devlope program using multithreading
5) Devlope program using graphics and applet
6) Devlope programs for handling I/O and file streams
 INTRODUCTION:-

Importance of the project in the Currency convertor.


Now, as mentioned the current rate of the rupee against the dollar is 61.06. Suppose
you have Rs 1000, Then just divide 1000/77.82=12.85 dollars. Thus, you would get
12.82 dollars for Rs 1000, which is the exact rupee dollar rate. On the other hand, if,
you have 1000 dollars, just multiply the 1000 dollars by 77.82.
 The following formula can be used to convert kilometers tomiles,
 Conversion in Dollar = 77.82* Amount in Rupees
 There are many conversion tools. They are found in the function libraries of
applications such as spreadsheets databases, in calculators, and in macro packages and
plugins for many other applications such as the mathematical, scientific and technical
applications.
 There are many standalone applications that offer the thousands of the various
conversions.

 Rupees
➢ The Indian currency is called the Indian Rupee (INR) and the coins are called
paise. One Rupee consists of 100 paise. The symbol of the Indian Rupee is ₹ . The
design resembles both the Devanagari letter "₹" (ra) and the Latin capital letter "R",
with a double horizontal line at the top.
➢ 1 Indian Rupee is equal to 0.013 United States Dollar

 Dollar
➢ The United States dollar is the official currency of the United States and several
other countries. The Coinage Act of 1792 introduced the U.S. dollar at par with the
Spanish silver dollar, divided it into 100 cents, and authorized the minting of coins
denominated in dollars and cents.

➢ 1 Dollar is equal to 77.82 Indian Rupees.


Pound
➢ Sterling, known in some contexts as pound sterling, the British pound, or the pound, is the
official currency of the United Kingdom, Jersey, Guernsey, the Isle of Man, Gibraltar, South
Georgia and the South Sandwich Islands, the British Antarctic Territory, and Tristan da Cunha. It
is divided into 100 pence.
➢ 1 Pound is equal to 1.25 Dollar

Euro
➢ The euro (symbol: €; code: EUR) is the official currency of 19 of the 27 member
states of the European Union. This group of states is known as the eurozone.

➢ 1 Euro is equal to 1.06 Dollar

Japanese Yen
➢ The yen (Japanese: 円, symbol: ¥; code: JPY; also abbreviated as JP¥) is the
official currency of Japan. It is the third-most traded currency in the foreign.
➢ 1 Japanese Yen is equal to 0.0078 Dollar.
LITERATURE REVIEW:-

The Rupees is an Indian Currency equal to 0.01 Cent, or 0.01 pound, 0.01 euro,
1.64Yen..A conversion factor is used to change the Currency quantity without
changing its value. The unity bracket method of Currency conversion consists of a
fraction in which the denominator is equal to the other currency but they are in
different Amounts. Because of the identity property of multiplication, the value of a
quantity will change as long as it is multiplied by the current price of currency. Also, if
the numerator and denominator of a fraction are equal to each other, then the fraction is
equal to one. So as long as the numerator and denominator of the fraction are
equivalent, they will affect the value of the quantity.

The following example demonstrates how the currency conversion method is used to
convert the rate 1 Rupees to Dollar. The symbols Rs and $ represent Rupees and Dollar
respectively. Thus, it is found that 1 Dollar is equal to 77.82 Rs.

The program will then present the following menu of selections:

Main Menu: -

Which currency do you want to convert?

Indian Rupees

United states Dollar

Pound

Euro

Japanese Yen

Enter Choice :

The program will convert the Currency like Rupee , Dollar, Pound, Euro, Yen depending
on the user’s selection. Here are the specific requirements:

Write a If-else blocks, which checks if the number of currency is equal to this matched
number or not, if matched then if statement executes with giving formula , if not matched

then checks all if-else blocks and executes. If matches are converted to input currency.
Simply Converts the Dollar to Rupees using the following formula: Dollar = Amount *
77.82

Write a If-else blocks, which checks if the number of currency is equal to this matched
number or not, if matched then if statement executes with giving formula, if not matched
then checks all if-else blocks and executes. If matches are converted to input currency.
Simply Converts the Dollar to Euro using the following formula: Dollar = Amount 0.96
Write a If-else blocks, which checks if the number of currency is equal to this matched
number or not, if matched then if statement executes with giving formula, if not matched
then checks all if-else blocks and executes. If matches are converted to input currency.
Simply Converts the Dollar to Pound using the following formula: Dollar = Amount *
0.82
Write a If-else blocks, which checks if the number of currency is equal to this matched
number or not, if matched then if statement executes with giving formula if not matched
then checks all if-else blocks and executes. If matches are converted to input currency.
Simply Converts the Dollar to Rupees using the following formula: Dollar = Amount *
77.82
If Any condition is not matched then it displays another statement.
The program should quit the program After Executing.
If the user selects an invalid choice from the menu, the program should display an error
message.
PROGRAM :-

import java.util.*;

public class currencyconverter {

public static void main(String[] args) {

float dollar, pound, code, euro, yen, rupees;

Scanner sc = new Scanner(System.in);

System.out.println("Which Currency You Want To Convert ? \n");

System.out.println("1:Indian Ruppes \n2:United States Dollar \n3:Pound


\n4:Euro \n5:Japanese Yen\n ");

System.out.print("Enter Choice :\t ");

code = sc.nextInt();

if(code==1||code==2||code==3||code==4||code==5){

System.out.print("How much Money you want to convert ?");


System.out.print("\t: ");

float amount = sc.nextFloat();

// Indian Rupees

if(code==1){

System.out.println("\nYour "+amount+" Rupee is "+amount*0.013f+" Dollar");


System.out.println("Your "+amount+" Rupee is "+amount*0.010f+" Pounds");
System.out.println("Your "+amount+" Rupee is "+amount*0.012f+" Euro");
System.out.println("Your "+amount+" Rupee is "+amount*1.66f+"
JapneseYen");

// United States Dollar

else if(code==2){
System.out.println("Your "+amount+" Dollar is "+amount*77.85f+" Rupees");
System.out.println("Your "+amount+" Dollar is "+amount*0.82f+" Pounds");
System.out.println("Your "+amount+" Dollar is "+amount*0.96f+" Euro");
System.out.println("Your "+amount+" Dollar is "+amount*129.12f+" Japnese
Yen");
}

// Pounds
else if(code==3){
System.out.println("Your "+amount+" Pound is "+amount*95.48f+" Rupees");
System.out.println("Your "+amount+" Pound is "+amount*1.23f+" Dollar");
System.out.println("Your "+amount+" Pound is "+amount*1.18f+" Euro");
System.out.println("Your "+amount+" Pound is "+amount*158.35f+"
JapneseYen");
}

// Euro
else if(code==4){
System.out.println("Your "+amount+" Euro is "+amount*81.12f+" Rupees");
System.out.println("Your "+amount+" Euro is "+amount*1.04f+" Dollar");
System.out.println("Your "+amount+" Euro is "+amount*0.85f+" Pounds");
System.out.println("Your "+amount+" Euro is "+amount*134.50f+"
JapneseYen");

}
// Japanese Yen

else if(code==5) {
System.out.println("Your "+amount+" Japanese is "+amount*0.60f+" Rupees");
System.out.println("Your "+amount+" Japanese is
"+amount*0.0077f+" Dollar");
System.out.println("Your "+amount+" Japanese is
"+amount*0.0063f+" Pounds");
System.out.println("Your "+amount+" Japanese is
"+amount*0.0074f+" Euro");

System.out.println("\n\tThanks , For Co-Operate us."); }


else{
System.out.println("!!!!!!!!!!! Sorry !!!!!!!!!!!");
System.out.println("Invalid Input\nPlease Enter Valid input");
}

}
OUTPUT :-
ACTUAL RESOURCES REQUIRED:-

Sr. No. Name of Resource/Material Specifications Remarks

1 Computer System Dell Windows 10

2 Processor Intel(R) Core(TM)


i3- 10110U CPU @
2.10GHz 2.59 GHz

3 Memory 8 GB ram, 1TB

HDD, 256SSD

4 Operating System Window 10

5 Command prompt -
 ADVANTAGES :-
➢ System is a decimal system of weights and measures it is easy to convert between Currency
(e.g. from Dollar to Rupee, or Pound to Euro to Yen) simply by multiplying or dividing by
77.82, 0.82, 0.96, 129.2 etc.

• DISADVANTAGES :-
➢The only major disadvantage in using the metric system is that it's not well suited for working
with currency calculation. For example, 1000/77.82 Rs is approximately equivalent to 12 dollar
and 1000/1.64 Yen is approximately equal to 600 yen
 APPLICATIONS:-

➢ A conversion factor is used to change the currency of a measured quantity without changing
its value. The currency conversion consists of a fraction in which the denominator is equal to the
numerator, but they are in different currencies.

➢ There are many conversion tools. They are found in the function libraries of applications such

as spreadsheets databases, in calculators, and in macro packages and plugins for many other
applications such as the mathematical, scientific and technical applications.
 CONCLUSION :-
In this article, we’ll see how to make currency conversion which includes conversion between INR and
Dollar. Two text fields are implemented with the labels Rupees and Dollar.

First of all, I let you know that this is a Java Example Program of Currency Converter for beginners.
We can use so many different methods and approaches to create this kind of currency converter.It’s a
simple school project you can say. here we use only if else statements. you can use your favorite methods
or thought about this.
• REFERENCES :-
➢WWW.JAVATOINT.COM

➢WWW.WIKIPEDIA.COM

➢WWW.CURRENCYCONVERTER.COM

You might also like