Class 25 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

Consider our banking example, and the following signature and purpose:

;; add-bonus-for-high-balance: -> void
;; The function adds $100 as a high-investor reward to any account
;; in Citibank with a balance exceeding $10,000
;; EFFECT:  may change the balance of some of the accounts in Citibank
Should you use a mutator to solve this problem, or set!? Could you use either? Defend your answer.