OOP:
Factory patteren:
create currency interface implemnentation classs with all possible currency types. Now create factory method to determine curreycy type and display it.
Q1: http://javarevisited.blogspot.com/2011/12/factory-design-pattern-java-example.html