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:     } }

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

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:

    }

}

        

Expert Solution
steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT