Currency Conversion Test Cases
Display Menu Valid Menu Selection | Inputs | ExpectedOutput | Australian | Menu Selection = 1 | Do you want to continue with the conversion Yes or No?Currency_Type = 1 | | | | Jamaican Dollar (JMD) | Menu Selection = 1 | The selected currency will be converted to U.S. Dollars.foreignCurrency =1 | Australian Dollar (AUD) | Menu Selection – 2 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 2 | European (EUR) | Menu Selection = 3 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 3 | Canadian (CAN) | Menu Selection = 4 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 4 | French Franc (FRF) | Menu Selection = 5 | The selected currency will be converted to U.S. Dollars.foreignCurrency = 5 | End Program | Menu Selection = 0 | Program ends | Invalid Selection | Any other number | Please enter the number corresponding to the desired currency type: |
Get International Values Valid International Values | Input | Expected Output | 100 AUD | 100.00 | 96.7457 USD | | | | 250 JMD | 250.00 | 21362.5 USD originalCurrency = 21362.5 | 250 AUD | 250.00 | 239.1 USDoriginalCurrency = 239.1 | 250 EUR | 250.00 | 179.775 USDoriginalCurrency = 179.775 | 250 CAD | 250.00 | 251 USDoriginalCurrency = 251 | 250 FRF | 250.00 | 1510.59 USDoriginalCurrency = 1510.59 |
Convert Currency Valid International Currency | Input | Expected Output | | | | Jamaican Dollar (JMD) | 250.00 | 250 * 115.38 = 28845.00finalCurrency = 28845.00 | Australian Dollar (AUD) | 250.00 | 250 * 1.30 = 323.97finalCurrency = 323.97 | European (EUR) | 250.00 | 250 * .92 = 230.55finalCurrency = 230.55 | Canadian (CAN) | 250.00 | 250 * 1.26 = 315.61finalCurrency = 315.61 | French Franc (FRF) | 250.00 | 250 * 6.02349 = 1510.59finalCurrency = 1510.59 |