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

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 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

State Diagram open a new account NO a mount can b... View full answer

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 Programming Questions!