Question: plese provide code in c++ Due: Friday, January 28 on Blackboard by 11:59 PM Overview Write a CH program that will act as a compound



Due: Friday, January 28 on Blackboard by 11:59 PM Overview Write a CH program that will act as a compound interest calculator. It should calculate the future value of an account after a 4-year period with a fixed interest rate. Basic Program Logic The first thing to do in the program is to create any variables that are needed to hold/save information for the program. To determine how many variables are needed, think about the information that will be entered by someone using the program and whether it is important for that information to be saved. Think about any calculations that will be performed by the program and whether the results of the calculations need to be saved. To determine the data type for the variables, think about what type of values that someone using the program will be entering or what kind of results will be produced by any calculations. (Note: to ease into writing this first program, the data type pr the variables has been specified below.) Ask the user of the program for the initial investment amount for the account. This is a dollar amount that should be stored in a float or double variable. Ask the user of the program for the annual interest rate. This is a percentage that should be stored in a float or double variable. Calculate the future value of the account using the initial investment amount and annual interest rate that were entered by the user of the program. Notice that the first formula calculates the value for year 1. The value for year 1 is then used to calculate the value for year 2. Year 2 is then used to calculate the value for year 3, which is then used to calculate the value for year 4 (the final year). Value for year 1 - initial investment +(initial investment interest rate / 1003 Value for year 2 - Value for year I + (Value for year i interest rate / 100) Value for year 3 Value for year 2+ (Value for year 2 interest rate / 100) Value for year A Value for year 3+ (Value for year 3 interest rate / 100) Future Value of the account - Value for year 4 Finally, display the future value of the account (the value for year 4) as shown in the output below. Program Requirements 1. At the top of the C++ source code, include a documentation box that resembles the following, making sure to put your name after the "Programmer" label, the section of CSCI 240 that you're in after the "Section" label, and the due date for the program after the "Date Due" label. A box similar to this one should be put in EVERY source code file that is handed in this semester. Note: DO NOT put this box within cout statements. It should NOT be displayed as part of the output from the program CSCT 240 Program 1 Spring 2022 Programmer: Section: Date Due: Purpose: The purpose of this program is to calculate compound interest over a 4 year period. The user is prompted for the initial investment amount and the annual interest rate for the investment. . 2. Include the following lines of code BELOW the documentation box: #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
