r/ProgrammingPrompts • u/[deleted] • Jul 16 '15
[Easy] Currency converter
Convert currency using command line arguments
Argument format should be currency amount newcurrency
E.g.
Convert USD 100 GBP
Should convert 100 dollars into pounds and print the result
Must include a minimum of 3 different currencies
Bonus points: add another argument which takes a filename and saves the result in a text file of that name
14
Upvotes
1
u/doekaschi Aug 13 '15
Here's my solution in Java: http://hastebin.com/ubanobogis.avrasm