Prepare the program to calculate the future investment value
Program: Write a C++ program that reads in investment amount, annual interest rate, and number of years in this order, and displays the future investment value using the subsequent formula:
accumulated value = investmentAmount x (1 + monthlyInterestRate)numberOfYears*12
(Hint: Use the pow(a, b) function to compute a raised to the power of b.) and step by step commentary if possible.
Use the c ++ to prepare this program and add comments in code section.