### Instruction: John deposited $10,000 to open a new savings account that earned 10 percent annual interest, compounded quarterly. If there were no other transactions in the account, what was the amount of money in John’s account 6 months after the account was opened?
Answer Choices: (A) $10,100.75 (B) $10,101.75 (C) $10,506.25 (D) $10,201.35 (E) $10,404.25 Please write a program to solve it.### Response: principal = 10000
annual_interest_rate = 0.10
compounded_per_year = 4
time = 0.5 # 6 months is half a year

# formula for compound interest is A = P(1 + r/n)^(nt)
amount = principal * (1 + annual_interest_rate/compounded_per_year)**(compounded_per_year*time)
print(amount)