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 step-by-step solutions from verified subject matter experts
100% Satisfaction Guaranteed-or Get a Refund!
Step: 2Unlock detailed examples and clear explanations to master concepts

Step: 3Unlock to practice, ask and learn with real-world examples

See step-by-step solutions with expert insights and AI powered tools for academic success
-
Access 30 Million+ textbook solutions.
-
Ask unlimited questions from AI Tutors.
-
Order free textbooks.
-
100% Satisfaction Guaranteed-or Get a Refund!
Claim Your Hoodie Now!

Study Smart with AI Flashcards
Access a vast library of flashcards, create your own, and experience a game-changing transformation in how you learn and retain knowledge
Explore Flashcards