if you have your code in cell C1, then in C2 you could use:
=VLOOKUP($C$1,$A$1:$B$5,2,FALSE)
format cell C2 as currency, and it should be what you are looking for

Hope this helps