I have the simple table below:
How could I store the currency and amount in an array? A 2x2 array would do this but how to store them and retrieve them
is the challenge. For example, I have a method that asks the user for two inputs, the currency and the amount and using the array as a chat table where I could map the currency to the the currency input entered by the user, I could do some calculations with the amount entered by the user. Anyone, willing to help or point me to how I could represent the 2x2 array?