This app allows users to:
- Enter an initial investment amount
- Enter a monthly deposit amount
- Enter an annual interest amount (compounded)
- Enter the number of months for investment
A nice feature of this app is that a user does not have to enter an additional monthly deposit amount and may choose to only make an initial deposit. The simple display will show the user's year end balance as well as display the interest earned on both the initial deposit and any recurring deposit amount entered.
This project was made in Visual Studio.
Main Component: Running "AirgeadBanking.cpp" will execute the main function.
Additional Information:
This is a simple program which can be expanded upon.
There are three main files containing the variables & methods used. For each file there also exists a header file with the same name (the only diffenece is the file type .h).
- "display.cpp" - This file is for the display
- "reportAdditionalDep.cpp" - This file contains logic for calculating and displaying recurring monthly deposits
- "reportNoAddtionalDep.cpp" - - This contains logic for calculating and displaying when a user chooses not to add a recurring monthly deposits but invests and intitial deposit only.
Recent Improvements:
- 10/24/24 - Updated display format to use setw instead of hard coded spacing.
Areas to Improve:
- Adding documentation for methods
- Expanding the program
- Validate user input
- No Unit tests currently
Challenges:
- I found it difficult to code how to calculate the interest. I first had to do it out by hand on paper and check that it made sense. Once I got the numbers working, I wrote the pseudo code for it and then coded and checked as I went looking for a few edge cases.
- I also found the formatting difficult. I would have liked to make a table instead, but went with what I knew how to do first to make it work.
- I was not used to the naming conventions of using variable and member naming such as "m_balance" or "t_balance" so I had to pay careful attention to detail there.