We have the information about the following N savings accounts of a banking organization:
-
Account number, of type String.
-
Opening date, type String of length 10, format “yyyy/mm/dd” (Year/Month/Day).
-
Type of account (1: Daily Savings, 2: Young Account, 3: Traditional), of type int.
-
Account balance, of type float.
The bank want to create a program in JAVA, using structured programming, that calculates and displays the following information:
-
Account number
-
Monthly interest value of the account
-
Balance of the account with the increase in the interest value.
-
Show the total amount of interest on all accounts.
-
Shows the sum of total balances.
In addition, they provide the information to calculate the interest value of the account, which depends on the type of account, as follows:
Account Type | (%) monthly interest |
---|---|
1. Daily Savings | 1.5 |
2. Young Account | 1.7 |
3. Traditional | 1.6 |
If you have any feedback, please feel free to fork this repository and update the solution