Reference no: EM132235347
You just returned from a trip in Central America. The countries you visited were Mexico, Guatemala and El Salvador.
You arrived back in the United states with some foreign currency from these countries.
Write Java program that prompts the user for amount of each foreign currency. Your prompts should look like:
Enter number of Mexican Pesos :
Enter number of Guatemalan Quetzals :
Enter number of Salvadoran Colons :
The current exchange rates for these currencies is:
1 Mexican Peso = 0.051 US $
1 Guatemalan Quetzal = 0.129 US $
1 Salvadoran Colon = 0.114 US $
Your Java program should convert the amounts entered by the user and compute and display the total amount of US Dollars.
Your output should look like:
US Dollars = computed total amount of US dollars
Please make sure to end each line of output with a newline.