Java currency exchange GUI program using live rates

Topic:

We are designing an application (GIU) that takes a certain amount of one country’s currency and display the exchanged amount in another country’s currency in real time.

 

Requirement:

Requirement # Description
1 The application will allow the user to select a country type listed (US Dollars, Euro, Indian Rupee, Australian Dollar, Canadian Dollar, Singapore Dollar, Japanese Yen, Chinese Yuan Renminbi, South African Rand, Brazilian Real) for currency getting exchanged from using a drop down list.
2 The application will allow the user to select a country type listed (US Dollars, Euro, Indian Rupee, Australian Dollar, Canadian Dollar, Singapore Dollar, Japanese Yen, Chinese Yuan Renminbi, South African Rand, Brazilian Real) for currency getting exchanged to using a drop down list.
3 The application will allow user to enter the amount of currency they want to exchange.
4 The application will have a submit button to allow the exchange to happen.
5 The application will calculate the exchanged currency using the database
6 The database gets the real time information from the rate website https://www.x-rates.com/ (rates come from each individual country for instance https://www.x-rates.com/table/?from=USD&amount=1 )
7 The database updates every minute, including after a conversion.
8 The application displays the amount of exchanged currency rounded to the nearest cent (ex. $1.81), along with the exchange rate used.
9 The application will allow the user to type a new amount or change the country and will display the new exchanged currency .
10 Error will appear if the entered amount of currency is not a positive number i.e., letters, negative numbers, etc.
11 The application will only allow amount entered to the hundredth decimal. If no decimal is used,“.00” is automatically added.
13 The application will list the time of the last database update after conversion.
14 If application does not have internet connection when first opened an error will display informing the user it is unable to update rates do to connection error. “Error no internet connection, unable to update rates”
15 If unable to update exchange rates, the application will display an error message. “The data is not updated do to connection error, but used the previous data”
16 Application will contain different classes such as

a.       GUI Class

b.      Conversion Class

c.       Database Fetch Class

d.      Error Class

 

   

 

 

GUI

EXAMPLES

 

 

 

 

Last Updated on February 12, 2019 by Essay Pro