. The method should accept a number of months as an integer and compute the interest earned on the balance of the account for that period of time (don’t worry about compund interest). For example, if the standard interest rate for all accounts is 1.2% and you are asked to compute the amount of interest earned in 1 month you would add 0.1% interest to the account (1.2 / 12 = 0.1). Here’s a method header:
Comments
Leave a comment