Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design a program that will act as a compound interest calculator. It will calcul

ID: 2972817 • Letter: D

Question

Design a program that will act as a compound interest calculator. It will calculate the future value of an account after a 4 year period with a fixed interest rate. The program should: Prompt the user for the initial investment amount for the account Prompt the user for the annual interest rate Use the initial investment and interest rate to calculate the future value of the account: Value for year 1 = initial investment + (initial investment * interest rate / 100) Value for year 2 = Value for year 1 + (Value for year 1 * interest rate / 100) Value for year 3 = Value for year 2 + (Value for year 2 * interest rate / 100) Value for year 4 = Value for year 3 + (Value for year 3 * interest rate / 100) Display the future value of the account (ie. the Value for year 4) Follow the sample output for the details on how the output should look. Processing Requirements Include the following lines of code BELOW the documentation box: #include #include using namespace std; Use type float or double for all of the the numeric values. Use meaningful variable names. You may assume that the interest rate is entered as a percentage. For example, if the interest rate is 5%, the user will enter 5 or 5.0. Make sure and test your program with values other than the ones supplied in the sample output.

Explanation / Answer

#include "stdafx.h" #include #include using namespace std; void main () { int test; couttest; switch(test) { case (1): {cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote