CurrencyConverter.java 479B

123456789101112131415161718192021222324252627
  1. public class CurrencyConverter {
  2. public CurrencyConverter(){
  3. /* dollar 1.00 std.
  4. * euro 0.94
  5. * gbp 0.82
  6. * inr 68.32
  7. * aus 1.35
  8. * can 1.32
  9. * sing 1.43
  10. * swiss 1.01
  11. * malay 4.47
  12. * jpy 115.84
  13. * cny 6.92
  14. *
  15. */
  16. }
  17. public float convert(float amount, float type2, float original){
  18. amount = (type2*amount)/original;
  19. return amount;
  20. }
  21. }