Question
I'm trying to write a c++ programming to compute the amount of a certificate of deposit on maturity. The program must check the initial conditions
I'm trying to write a c++ programming to compute the amount of a certificate of deposit on maturity. The program must check the initial conditions for all arguments as below: The initial deposit cannot exceed$100,000.00 The annual nominal interest rate is between 0.5 and 5.0 The minimum length for the CD is 1 year, maximum is 10 years
A=P*( 1 + r)^n*t
where
A = ending balance P = initial deposit amount r = annual nominal interest rate t = number of years n = number of compounding paid per year ( 12 for monthly compounding)
The program must repeat to calculate for more than 1 CD.
the sample output needs to follow:
Enter your initial deposit: 20,000 Enter the annual nominal interest rate: 3.25 Enter how many years the money will be certified: 5
CERTIFICATE of DEPOSIT
Initial amount of deposit: $20,000 Annual interest: 3.25% Duration: 5 years (s) Ending balance: $23523.80
Do you wish to go again? (Y/N):
I don't know what's wrong with my program can someone help me?
Transcribed image textStep 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