After walking for 2 days, 7 hours, 27 minutes and about 36 seconds, Don Ramon and el chavo finally made it to Acapulco. Needless to say that they are excited and want to explore the city and buy food and souvenirs.
Unfortunately, things are not quite as straightforward as in Mexico city. For starters, prices are listed in foreign currencies, and for some reason stores do not list the unit price of a product. El chavo wants to buy his favorite food "torta de jamon" (ham sandwich), and while one store has the item listed as 4 tortas = 20 dollars, another one lists the same item as 5 tortas = 15 euros. Since they are already short on cash they do not want to spend more money than what they should. They could try figuring out the conversions and unit prices but as you know, they are not very good with math.
Y ahora, quin podr ayudarlos? (who can help them now?).
One more time, you are to play the role of el chapuln colorado. Write a program that solves this problem. The idea is to read some information from the console and calculate the exchange rate between currencies as well as the unit price of the inputted item. What makes this problem a little harder is that your program needs to be able to handle any type of currency.
To give you a better idea of what you need to do I have included (below) two sample runs of the program. Notice that the first column adjusts to the length of the words. See image. See next image.
Your output should be formatted in 2 columns, as shown above. Keep in mind that the input currencies may be arbitrarily long and your formatting for the first column should adjust accordingly. Also, the exchange rates should be reported with exactly 2 decimal spaces.
You may assume: