Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Extra Credit Challenge Exercise (due by 11:59 pm): The amount, A, which will be in a bank account that earns compound interest, is calculated with
Extra Credit Challenge Exercise (due by 11:59 pm): The amount, A, which will be in a bank account that earns compound interest, is calculated with the following formula: nt A=P(1 + n) where P is the principle (the amount originally deposited in the account), r is the annual interest rate (as a decimal, i.e. 3%.03), n is the number of times the interest is compounded (how often interest earnings are paid into the account), and t is the number of year the account earns interest. Write a script which prompts the user for a principle amount, interest rate, and how often the interest is compounded. The script should calculate the amount that will be in the account after 1, 5, 15, and 30 years. Use fprintf to display this information to the user. The amount in the account should be rounded to the nearest cent when displayed to the user
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started