Problem: Complete a program that lets users estimate investment returns. The use
ID: 3655695 • Letter: P
Question
Problem: Complete a program that lets users estimate investment returns. The users would enter an investment amount, an annual compounded interest rate, and period information (i.e. start year and end year) and get the investment return value at the end. Design the program so that the users can try as many time as they want, i.e. they can try different investment conditions to estimate their returns in one run of the program. Provide good user prompts but don't forget to do data validation. For example, all input should be positive numbers and end year should be later than the start year. Be sure to provide meaningful and organized output as well.Explanation / Answer
#include #include using namespace std; int main(){ double interestRate,initialBalance,endBalance; int startyear,endyear; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.