Please create a driver class (java) that contains only a main method which should: Create a new CustomerList obiect Prompt the user to enter a file name Call the getCustomer List method with the file name that the user entered While (true) { Prompt user to enter command; if (command is "a") { Prompt user for customerNumber firstName lastName balance; Create a customerRecord and store it in the database; } else if (command is "f") { Prompt the user to enter a customer number and then displays the corresponding record on the screen; } else if (command is "g") { Prompt the user to enter a file name to save the latest update; Save the information in the database to the file specified by the user; Terminate program; } else { Display error message: } }
Please create a driver class (java) that contains only a main method which should:
Create a new CustomerList obiect
Prompt the user to enter a file name
Call the getCustomer List method with the file name that the user entered
While (true) {
Prompt user to enter command;
if (command is "a") {
Prompt user for customerNumber firstName lastName balance;
Create a customerRecord and store it in the
} else if (command is "f") {
Prompt the user to enter a customer number and then displays the corresponding record on the screen;
} else if (command is "g") {
Prompt the user to enter a file name to save the latest update;
Save the information in the database to the file specified by the user;
Terminate program;
} else {
Display error message:
}
}
Step by step
Solved in 5 steps with 3 images