Write a program that provides personal banking applications to a user. Some basic
services the program may provide are :
Whenever a deposit or a withdrawal is made, the balance amount should be updated. In addition, interest should be calculated for each deposit based on the date on which the deposit was made. The account balance information provided by the balance inquiry facility should refelect the sum of the deposits and the interest earned by those deposits (minus the withdrawals of course!). Your program should include functions that perform deposits, withdrawals, and balance reports. The account may be initialized in the main() function. Assume an initial balance of $100, and an annual interest rate of 5%. When deposits and withdrawals are made, the amounts as well as the dates should be input and recorded within the program, in order to facilitate the interest calculations.
Interest is earned EACH DAY, if there is a positive balance in the account. Your main routine should consist of a prompt which allows users to select the service they need (a basic menu) - function calls should then be made to service those requests. After the requested service has been provided, your program should redisplay the initial menu. An option should also be provided to terminate the program.
NOTE: Since the interest amounts earned by deposits are dependent on the size of the amounts and the dates on which deposits and withdrawals were made, it will be necessary for your program to compute the 'age' of each deposit or withdrawal. You may find it useful to use the julian_date.h file that you have copied into your directory - a good example of code reusability!!
Name your program file asg.c . I will have a script written that will allow you to
submit this through your unix account.
We will go over this in during week 6 and 7.
The program is due in week 8