Question: i need help with the output. Chegg doesnt allow me to post the code itself since its too long. please please help my two inputs

i need help with the output. Chegg doesnt allow me to post the code itself since its too long. please please help

i need help with the output. Chegg doesnt allow me to post

the code itself since its too long. please please help my twoinputs that is required i xannot copy and paste it. please provideenail so i can send it. chegg says the code is longpublic static void main(String[] args) throws IOException { //Showing all required variablesfinal int Max Num = 20; int numAccts = 0; int[] accNum= new int [Max_Num]; double[] balance = new double [Max_Num] ; booleannot Done = true; // Open the input file File myFile =new File("homework7ainput.txt"); //Create a Scanner object to read the input file Scannerinput File = new Scanner (myFile); // Open the input file #2File myFile1 = new File("homework7binput.txt"); //Create a Scanner object to read the

my two inputs that is required

input file Scanner input Filel = new Scanner (myFilel); //Create an output

file object using the PrintWriter Class PrintWriter output File = new PrintWriter("homework7output.txt");

i xannot copy and paste it. please provide enail so i can send it. chegg says the code is long

public static void main(String[] args) throws IOException { //Showing all required variables final int Max Num = 20; int numAccts = 0; int[] accNum = new int [Max_Num]; double[] balance = new double [Max_Num] ; boolean not Done = true; // Open the input file File myFile = new File("homework7ainput.txt"); //Create a Scanner object to read the input file Scanner input File = new Scanner (myFile); // Open the input file #2 File myFile1 = new File("homework7binput.txt"); //Create a Scanner object to read the input file Scanner input Filel = new Scanner (myFilel); //Create an output file object using the PrintWriter Class PrintWriter output File = new PrintWriter("homework7output.txt"); //PrintWriter outut File = new PrintWriter (System.out); menu (input File, outputFile); numAccts = readAccts(accNum, balance, numAccts, outputFile, inputFile); while (not Done) { char select; //Reading first character from each line select = inputFile1.next().charAt(0); switch (select) { //Withdrawal from account case 'W': case 'w': //closing files output File.close(); System.exit(1); public static int readAccts (int[] acctNum, double[] balance, int numAccts, PrintWriter output File, Scanner inputFile) throws IOException { int index; // Start for loop for(index = 0; index = amt) { // Update the balance balance [found) -= amt; // Display success message output File.println("\tWithdrawal Successful"); output File.println("\t Deposit was Successful."); } else { output File.println("\tERROR: Invalid amount"); } //Method to add a new account public static int newAcct (int [lacctNum, double []balance, int numAccts, Printwriter output File, Scanner input Filel) throws IOException { // Checks if current number of accounts is less than the maximum limit account if (numAccts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!