You are on page 1of 4

BTE4416

MATLAB ASSIGNMENT 2

NAME
MATRIC

:
:

MOHAMMAD ALIF BIN SARJI


1212247

1. An M-file for SGD currency was made with its exchange rate to USD.
2. An M-file for MYR currency was made with its exchange rate to USD.

3. An M-file is made to call the function of the two using if else function
4. Call for the M-file of coonvert. A statement to choose currency popped-up.

5. The program will ask for the amount of USD that we want to exchange to
foreign currency.

6. The program will compute the amount that the user will get.

7. If the user choose the second choice with the same amount in USD, it will use
the second function.

You might also like