Question
C++ Using a loop, accept a starting balance as input from users for an investment, continuously prompting users for the investment until they enter a
C++
Using a loop, accept a starting balance as input from users for an investment, continuously prompting users for the investment until they enter a value greater than zero.
Using a separate loop, produce a table of values showing the year, interest gained that year, and the closing balance for that year. Assume a 5% annual interest rate and an investment period of 10 years.
Be sure to name all variables and constants properly as per the style guide
You must include complete program documentation:
Block comment at the top of your code with Application Author, Application Name, Date of Creation, and a detailed Description
Single line comments describing each variable/constant
Block comments calling attention to your input/processing/output sections
Other single line comments as necessary
CAUsersAUMDesktopMPROG1710MWeekFivelBarlowlceFive.exe Please enter the starting balance of your investment: $1000.00 Balance Year Interest $50.00 $1050.00 $52.50 $1102.50 $55.12 $1157.62 $57.88 $1215.51 $1276.28 $60.78 $63.81 $1340.10 $67.00 $1407.10 $70.36 $1477.46 $1551.33 $73.87 $1628.89 $77.57 10 Press any key to continue
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