



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




public Account getAcct (CID id, AcctNum act) { DataBase d = open(“bankdata”); List L=d.search (“Accounts”, id); Account a = L.member(act); return (a); }
public float withdraw (CID id, AcctNum act, float amount) { float balance = 0.0; Account a = getAcct(id, act); if (a==null) { return (-1.0); } else { List R = a.search(“*”); balance = R.sum(); } if (amount <= balance) { a.addTransaction (“withdraw”, amount); return (amount); } else { return 0.0; }}
Board Width, height: int Content: Object[][] addContent(int, int, object) removeContent (int, int) getObject(int, int)
Board Width, height: int Content: Object[][] addContent(int, int, object) removeContent (int, int) getObject(int, int)