write a compound interest function. then find the balance. $4000 invested at a rate of 4% compounded quarterly; 3 years

amount = 4000(1.01)^12

= .....