To run this program it is recommended you use the command
gradle --console plain run
from within the root directory of the project.
You will immediately have access to the following commands:
-
admin <Password>
Switch to Admin mode. -
convert <From Currency (ISO-4217)> <To Currency (ISO-4217)> <Value>
Convert the Value from the Currency given by its ISO-4217 code into another Currency given by its ISO-4217 code. -
table
Display a table of the four most popular Currencies and their Exchange Rates. -
history <Currency Name (ISO-4217)> <Currency Name (ISO-4217)> <Start Date (DD/MM/YYYY)> <End Date (DD/MM/YYYY)>
Display the relative Exchange Rate history of two Currencies given by their ISO-4217 code between the Start Date and End Date given. -
currencies
Display a list of all current Currencies by their ISO-4217 codes. -
help
Display a list of all currently available commands with a brief description of each. -
quit
Quit the Currency Converter program.
To switch to access mode, use the Password: password, ie type:
admin password
.
In this mode you will have access to the following commands:
-
user
Switch to User mode. -
convert <From Currency (ISO-4217)> <To Currency (ISO-4217)> <Value>
Convert the Value from the Currency given by its ISO-4217 code into another Currency given by its ISO-4217 code. -
table
Display a table of the four most popular Currencies and their Exchange Rates. -
history <Currency Name (ISO-4217)> <Currency Name (ISO-4217)> <Start Date (DD/MM/YYYY)> <End Date (DD/MM/YYYY)>
Display the relative Exchange Rate history of the Currencies given by their ISO-4217 code between the Start Date and End Date given. -
add <Currency Name (ISO-4217)>
Add the Currency given by its ISO-4217 code to the list of Currencies. -
update <From Currency (ISO-4217)> <To Currency (ISO-4217)> <Date (DD/MM/YYYY)> <Exchange Rate>
Update the Exchange Rate between the two Currencies given by their ISO-4217 codes and include the current date. -
currencies
Display a list of all current Currencies by their ISO-4217 codes. -
help
Display a list of all currently available commands with a brief description of each. -
quit
Quit the Currency Converter program.
You may also test the program by running the command:
gradle clean test
.