When inputting data, user must spell out the currency name as Ringgit, Dollar, Pound, Won, Yen or Riyal.

others

Description

Assume that you are writing a program for an online shopping company. The owner wants the program to be able to accept item price, quantity of the item and two different currencies. Then, the program should display the total amount to be paid converted to the second currency. 

The program will accept Malaysian ringgit, U.S. dollar, British pound sterling, South Korean won, Japanese yen and Saudi riyal only. The following table shows the foreign currencies and their equivalents to Malaysian ringgit: 


Requirements: 

1. When inputting data, user must spell out the currency name as Ringgit, Dollar, Pound, Won, Yen or Riyal. 

2. The program should validate the currency name. If user enters invalid currency name, ask user to re-enter. 

3. Use two-dimensional array to store the currency name. 

4. Use one-dimensional array to store the currency value.


Related Questions in others category