You need to design an ATM digital system which has the followings
requirement:
- You need to enter 4 digit pin number in order to start a transaction.
- Once the correct pin number is entered, then only you will be able
to withdraw some money.
- The note that you can get from the machine is a RM5, RM 10 and
RM50 notes only. You need to select how many notes you want to
withdraw (for each value), but the maximum total of ringgit you
can withdraw in one transaction is RM100 only.
- If the total amount exceeds RM100, the machine will reset your total
and you need to enter the number again.
- Once you get the money, the machine will reset again the pin
number and the total go back to zero.
- There must also be a ‘cancel’ button which when you press, all the
value on the machine will be reset.
- For simplicity, assume there is only one pin number