1. Airgead Banking wants a screen to display with the following information:

  • Initial Investment Amount: The starting amount of your investment (a positive real number)
  • Monthly Deposit: The amount you plan to contribute to the growth of your investment each month (a positive real number)
  • Annual Interest (Compounded): Interest that is added to the principal sum of your investment and its previously accumulated interest (interest on interest and principal)
  • Number of Years: The number of years your investment has to grow
  • A way to see the data (for example: "Press any key to continue")

It should look something like the images below, with the ability to accept input. The first image shows what the user should see, and the second image shows the user's values.

Figure: see image.

2. When the user continues, the console should display two static reports. One should show the year-end balances and year-end earned interest if no additional monthly deposits are made. The second should show the year-end balances and year-end earned interest based on the monthly deposit value that was input by the user ($50.00 in this example). The following is an example of what your interface might look like. It is in no way representative of what it must look like. Be creative and keep the user experience in mind when designing your solution.

Figure: see image.

3. The user should be able to test different monthly deposit amounts, interest rates, and lengths of time to see how increases and decreases impact their investment growth.

4. Your code will need to account for the following:

  • Month: The number of months based on user input in the "Number of Years" field
  • Opening Amount: The initial investment amount as well as the opening balance each month, which includes interest
  • Deposited Amount: The dollar amount the user plans to deposit each month. This value will be the same every month for the duration of the investment.
  • Total: The sum of the opening and deposited amounts
  • Interest: Money earned based on the "annual interest" rate input by the user. The interest based on an opening amount of $1 and a deposited amount of $50 with an interest rate of 5% compounded monthly is: (Opening Amount + Deposited Amount) * ((Interest Rate/100)/12) OR (1 + 50) * ((5/100)/12)
  • Note: Dividing by 100 converts the interest rate percentage to a decimal. Note: 12 is the number of months in a year. Dividing the yearly amount by twelve gives monthly compounded interest.
  • Closing Balance: The sum of the total and interest amounts

As an example, this chart illustrates how compound interest is calculated based on an initial investment amount of $1.00 with additional monthly deposits of $50.00 at 5% interest over 5 years.

Note: Months 6-58 have been omitted, and these calculations are rounded to the nearest cent.

Month Opening Amount Deposited Amount $ Total $ Interest Closing Balance
1 1.00 50.00 51.00 0.21 51.21
2 51.21 50.00 101.21 0.42 101.63
3 101.63 50.00 151.63 0.63 152.27
4 152.27 50.00 202.27 0.84 203.11
5 203.11 50.00 253.11 1.05 254.16
... ... ... ... ... ...
59 3,287.68 50.00 3,337.68 13.91 3,351.58
60 3,351.58 50.00 3,401.58 14.17 3,415.76

5. It is important to note that the institution not only adheres to banking best practices but also complies with industry regulations. To ensure consistency and quality, Airgead Banking requires that all developers follow a set of strict best practices rules so that all written code is transferable, readable, and reusable.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.