make the program that calculate the exchange ratio