Question: Create a state machine that represents state changes for Account objects based on the following: o An account whose balance is 0 or more shall

Create a state machine that represents state

Create a state machine that represents state changes for Account objects based on the following: o An account whose balance is 0 or more shall be in the Active state Active accounts shall have deposits and withdrawals occurring on them o Active accounts shall become Overdrawn if their balance becomes negative o Customers shall be notified when their account becomes overdrawn Overdrawn accounts shall only have deposits occur on them o Overdrawn accounts shall become active when their balance is no longer negative An overdrawn account shall be Frozen after 3 months of no deposits o The Teller shall be notified when an account is frozen o Frozen accounts shall only allow a single deposit equal to or greater than the balance o Avalid deposit on a frozen account shall make the account active again o After 9 months, a frozen account shall be archived - and then there are no further interesting behaviors on the account that needs to be considered

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!