Bank Account Part 1

4. The Deposit Function

Now you should work on a deposit function. This function should have a parameter which accepts the amount to be deposited, it should do any checking it needs to and then should return the value to be deposited.

Make sure that since this function is returning how much to be deposited, that value is now what the parameter should be for the updateBalance function.
Next
Back