3. Select the first unnamed Class element below the EntryStation element and name it ATM.
4. With the ATM Class element still selected, add an attribute as follows:
private float cashOnHand
5. Add a second attribute to the ATM class and define it as follows:
6. private float dispensed
The attributes appear in the Class diagram.
Note: As you add attributes and operations to the classes, the size of the Class elements increases. To improve the appearance of the diagram, move the Class elements as needed so that you can see each element clearly. When doing this, be careful to select the Class element and not an individual attribute or operation.
7. Select the first Class element located below the ATM class and name it Consortium.
8. Add an operation to the Consortium class. Adding operations is similar to adding attributes. Right-click on the word Operations and select Insert Operations.
9. Type validateAccountInfo and press Enter.
The IDE creates the new operation as follows:
10. public void validateAccountInfo()
11. Select the Class element to the right of the ATM class and label it CashierStation.
12. Add two operations for this class as follows:
13. public int verifyCard()
14.
15. public float verifyAmountAvailable()
16. Label the two remaining Class elements Branch and User.
For the User class there are no attributes or operations.
17. For the Branch class, add an attribute as follows:
18. private char connected