You are on page 1of 7

DAYANANDA SAGAR UNIVERSITY

Object Oriented Programming with Java


Mini Project
Report on

CURRENCY CONVERTER

SUBMITTED BY
UDAY KUMAR A ENG20CS0389 4TH SEMESTER F SECTION
B SRI SHARAN ENG20CS0051 4TH SEMESTER F SECTION
VINOD V ENG20CS0413 4TH SEMESTER F SECTION

Under the Guidance of


Prof. Dr.Jyita saha

COMPUTER SCIENCE & ENGINEERING


(AI&ML)
SCHOOL OF ENGINEERING
DAYANANDA SAGAR UNIVERSITY
KUDLU GATE
BANGALORE -560068

DAYANANDA SAGAR UNIVERSITY


SCHOOL OF ENGINEERING
DAYANANDA SAGAR UNIVERSITY
KUDLU GATE
BANGALORE -560068

CERTIFICATE

This to certify that students in the team-15 consisting of < UDAY KUMAR A
(ENG20CS0389), B SRI SHARAN (ENG20CS0051), VINOD V (ENG20CS0413) > of 4th

semester CSE G section have successfully completed this mini project for the
course Object Oriented Design and Programming Lab (20CS2407) as the
partial fulfillment of Internal Assessment for the academic year 2021-2022.

USN Name Marks Awarded


ENG20CS0389 UDAY KUMAR A

ENG20CS0051 B SRI SHARAN

ENG20CS0413 VINOD V

Lab – In charge
Prof. Jayita saha
Assistant Professor
Dept. CSE
School of Engineering
Dayananda Sagar
University Sagar University
Problem Statement: -
The purpose of this currency converter is to convert the currency from one
country currency to another country currency.

 Can be Used Anywhere - Traders who send money overseas can


immensely benefit from this tool.
 It is Easy to Use.
 Offers Speedy Operations.
 It is Reliable.
 It Can Be Used in Import/Export Business.
 It is Efficient.
INTRODUCTION
Different countries use different currency, 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 regular update about currency of every country by which it
displays 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 currency converter, users are provided with an option to select the type of
conversion, i.e. from “this” currency to “that” currency. This simple feature allows
users to enter amount to be converted (say currency in Dollars), and display the
converted amount (say currency in Euro).
Explanation Of Code: -

1. import java.util.*; - Java util package contains collection framework,


collection classes, classes related to date and time, event model,
internationalization, and miscellaneous utility classes. On importing this
package, you can access classes and methods like –

 Stack
 vector
 Array List
 LinkedList

2. import java.text.DecimalFormat; - If you need two (or more) different


formats in a program, you can declare multiple instances of Decimal Format.

3. Switch case

 The switch expression is evaluated once.


 The value of the expression is compared with the values of each case.
 If there is a match, the associated block of code is executed.
 The break and default keywords are optional, and will be described later in this
chapter

4. Default (in switch case):


The default statement is executed if no case constant-expression value is equal to the
value of expression. If there's no default statement, and no case match is found, none
of the statements in the switch body get executed.
5. System.exit(0);
This status code is an integer value and its meanings are as follows:
1. exit(0) - Indicates successful termination.
2. exit(1) - Indicates unsuccessful termination.
3. exit(-1) - Indicates unsuccessful termination with Exception.

6. System.out.println();
is a statement which prints the argument passed to it. The println() method display
results on the monitor.

7. System.in

is a parameter that is taken by Scanner Class where "System" is a class and "in" is
a static variable of type InputStream which tells the Java Compiler that System input
will be provided through console(keyboard).

8. public static void main(String[] args)


Java main method is the entry point of any java program. Its syntax is always
public static void main(String[] args) . You can only change the name of String array
argument, for example you can change args to myStringArgs .
SAMPLE OUTPUT:

You might also like