write a C++ program to assist your course mates know the future value of his investment