1234567891011121314151617181920212223242526272829303132333435363738 |
-
- /**
- * Write a description of class MainApplication here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
-
- public class MainApplication
- {
-
- public static void main(String[] args){
- CurrencyConverter wuTang = new CurrencyConverter();
-
- System.out.println("Welcome to Wu-Tang Financial \n");
- System.out.println("We can convert any supported currency to any other supported currencey \n");
- System.out.println("Currently Supported Currencys: \n" + "US Dollar \n" + "Euro \n" +
- "British Pound \n" + "Indian Rupee \n" + "Australian Dollar \n" + "Canadian Dollar \n"
- + "Singapore Dollar \n" + "Swiss Franc \n" + "Malaysian Ringgit \n" + "Japanese Yen \n"
- + "Chinese Yuan Renminbi \n" );
-
- double convertFrom = wuTang.getStringInput("What money you got?");
-
-
- double convertTo = wuTang.getStringInput("What money you want?");
-
- double amount = wuTang.getDoubleInput("How much you got?");
-
- String converted = String.format("%.2f", wuTang.convertCurrency(convertFrom,convertTo,amount));
- System.out.println("Hey, Dirty; baby convert my money....");
- System.out.println( converted + " is what you get.");
-
-
-
-
- }
- }
|