Write a java console application that calculates and


Question: Write a java console application that calculates and displays the bank interest for N bank accounts. N should be declared as a constant and it should be equal to the largest digit of your student ID number (e.g. if your ID number is S334261 then N should be equal to 6 and you can declare it as final int N=6). The interest is based on total amount in account as shown below in Table 1.

Table. Amount and Interest

   Amount            Interest

$0 - $1000             0% (no interest)

$1001 - $5000      2.5%

$5001- $10000        5%

Over $10000           8% (high interest)

The application should ask the user to enter the amount for each account (total N accounts) and calculate the interest. The application should display the interest for each bank account as shown in the example below. At the end of the Nth account's interest, the details such as total interest, lowest interest, highest interest, average interest and number of accounts with no interest should be displayed. The total interest is calculated by adding the interest for all accounts. The lowest interest is calculated by finding the lowest value from interests for N accounts. The highest interest is calculated by finding the highest value from interests for N accounts. The average interest is calculated by dividing the total interest with the total number of accounts. The number of accounts with no interest is calculated by finding all accounts with zero interest.

Solution Preview :

Prepared by a verified Expert
Finance Basics: Write a java console application that calculates and
Reference No:- TGS02401826

Now Priced at $15 (50% Discount)

Recommended (94%)

Rated (4.6/5)