1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- public class CurrencyConverter {
-
- public double dollarToEuro(double dollar){
- return dollar * .94;
-
- }
-
- public double euroToDollar(double euro){
- return euro * 1;
- }
-
- public double euroToBritishPound(double euro){
- return euro * .82;
- }
-
- public double britishPoundToIndianRupee(double britishPound){
- return britishPound * 68.32;
- }
-
- public double rupeeToCanadianDollar(double rupee){
- return rupee * 1.32;
- }
-
- public double canadianDollarToSingaporeDollar(double canadianDollar){
- return canadianDollar * 1.43;
- }
-
- public double singaporeDollarToSwissFranc(double singaporeDollar){
- return singaporeDollar * 1.01;
- }
-
- public double swissFrancToMalaysianRinggit(double swissFranc){
- return swissFranc * 4.47;
- }
-
- public double malaysianRinggitToJapaneseYen(double malaysianRinggit){
- return malaysianRinggit * 115.84;
- }
-
- public double japaneseYenToChineseYuanRenminbi(double japaneseYen){
- return japaneseYen * 6.92;
- }
- }
|