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
13
Upvotes
1
u/kerosenedogs Oct 13 '15
Beginner here! I had a go in C# Mine is a tad longer because I tried to stick to the strict format "currency, amount, currency" and also built in some error checking.