Write a compound interest function to model each situation. Then find the balance after the given number of years.


$7000 investment at a rate of 3% compound quarterly; 10 years​