logo

MN404 - Java Program for Calculates and Displays the Bank Interest for N Bank Accounts

   

Added on  2020-03-01

4 Pages219 Words21 Views
Student Name Student ID number Course Name Course Code The program was tasted on the terminal. Interest rates for the following amounts were calculated for testing: Bank Account 1: 2513, Bank Account 2: 1425, Bank Account 3: 3625, Bank Account 4: 1124 The results are as shown below. These results are accompanied by twoseparate files for the two classes. One class initializes the variables. I used the nested if statements to initialize the rates. The other class contains the main method with a while loop to calculate the total interest, average interest, the minimum interest and the maximum interest. The following steps were taken to ascertain that the program works. Step 1: javac AccountTest.java was used to compile the program from the Linux Terminal. Step 2: java AccountTest was used to run the program. Step 3: Each of the first three values were entered consecutively. After each entry, the program calculated and displayed the interest rate of the account in question.

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
The deposit amount and duration were checked
|9
|798
|10

Money and Banking Assignment
|9
|1959
|235

Design and Testing of Bank Account and Loan Account Classes in Java
|8
|1340
|24

Assignment on Programming Using Java
|11
|2914
|439

CBCP2101: Computer Programming - Analysis, Pseudo Code, Flowchart, Tracing Table
|6
|564
|210

Business Finance Final Assessment Trimester 2, 2021
|10
|2355
|244