Please i need help in this . This doesnt come out as expected from the code i input in. And it doesnt calculate.import java.util.*; import java.text.*; public class Interest { static Scanner input = new Scanner(System.in).useDelimiter("\r\n"); static DecimalFormat fmt = new DecimalFormat("0.00"); public static void main(String[] args) throws Exception { int choice=0; int i=0; double [] iPrinciple = new double[4]; double [] iEarned = new double [4]; double [] iRate = new double [4]; int [] iDays = new int [4]; while (choice !='4') { System.out.println(" Interest Calculator "); System.out.println("================================"); System.out.println("1)Calculate the interest payable"); System.out.println("2)Calculate the principle required to earn $x of interest"); System.out.println("3)Calculate the time required to earn $x of interest"); System.out.println("4)Exit the program"); System.out.println(""); System.out.print("Please select your choice (1-4): "); choice = input.nextInt(); switch(choice) { case 1 : for (i=0; i<10; i++) { System.out.print("Enter principle amount $: "); iPrinciple[i] = input.nextDouble(); System.out.print("Enter interest rate in %: "); iRate[i] = input.nextDouble(); System.out.print("Enter period rate(time) in days: "); iDays[i] = input.nextInt(); iEarned[i] = (iPrinciple[i]*(iRate[i]/100)*(iDays[i]/360)); System.out.println(" Interest earned for principle of " + iPrinciple[i] + " at interest rate of " + iRate[i] + " is " + fmt.format(iEarned[i])); break; } case 2: for (i=0; i<10; i++) { System.out.print("Enter the interest amount to be earned in $ : "); iEarned[i] = input.nextDouble(); System.out.print("Enter the interest rate in % : "); iRate[i] = input.nextDouble(); System.out.print("Enter the period<time> in days : "); iDays[i] = input.nextInt(); iPrinciple[i] = (iEarned[i]/((iRate[i]/100)*(iDays[i]/360))); System.out.println(" To earn an interest of " + iEarned[i] + " over a period of " + iDays[i] + " you need a principle of " + fmt.format(iPrinciple[i])); } break; case 3: for (i=0; i<10; i++) { System.out.println("Enter the interest amount to be earned in $ : "); iEarned[i] = input.nextDouble(); System.out.println("Enter the interest rate in % : "); iRate[i] = input.nextDouble(); System.out.println("Enter the principle amount in $: "); iDays[i] = input.nextInt(); iPrinciple[i] = iEarned[i]/(iRate[i]*iDays[i]); System.out.println(" To earn an interest of " + iEarned[i] + " over a period of " + iDays[i] + " you need a principle of " + fmt.format(iPrinciple[i])); } break; case 4: for (int j=0; j<i ; j++) { System.out.println("Principle Rate Days Interest Total"); System.out.println(" ($) (%) ($) ($)"); System.out.println("--------- ---- ---- -------- -----"); System.out.println(iPrinciple[i] + iRate[i] + iDays[i] + iEarned[i] + (iPrinciple[i] + iEarned[i])); } break; default: System.out.println("This is an invalid choice, please select 1-4 only "); } System.out.println(""); } } }