Draw a state diagram for a bank account class that has the following requirements. Use guards where
Question:
Draw a state diagram for a bank account class that has the following requirements. Use guards where appropriate. You should use at least five state nodes in your diagram (you may use more but you are not required to do so).
1.New account has 0 balance and is open
2. Money can be money ordered through a check to another account at any time
3. Money can be sometimes debited (removed) from the account
4.Account can’t be debited if the balance is currently less than zero or would be less than $5,00
5.Account can be“frozen” at any time unless it is already frozen.
6.Can’t debit a frozenaccount
7. A frozen account can only be unfrozen if the balance is greater than or equal to zero.
8. Money can be transferred to another account only by its account number
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill