In this section, you will create a new Console Project which contains a Transaction class
and a TransactionMode enumeration.
Each Transaction will:
■ Know its transaction number
■ Know its date
■ Know its amounts
■ Know its points gained
■ Know what transaction mode it belongs
■ Can be constructed with a given transaction number, date, amounts, and transaction
■ Can update the points based on the transaction amount (For every transaction amount
of RM10 is equivalent to 1 point)
■ Can be printed, which returns a message depending on the transaction mode.
These are the following Transaction Mode, and they return the indicated messages:
■ Online
o “That’s a wise choice with more rewards”
■ Offline
o “You have secured some points”

New Download