Question: Assignment2.java-A driver class that contains only a main method which should: Create a new Customer List object Prompt the user to enter a file name
Assignment2.java-A driver class that contains only a main method which should: Create a new Customer List object Prompt the user to enter a file name Call the gerCustomerListO method with the file name that the user entered While (true) f Prompt user to enter command; if (command is "a") f Prompt user for customerNumber firstName lastName balance; Create a customerRecord and inserts the customer record at the head of a singly linked list; ) else if (command is "") )else if(command is "d" )else if(command is "r") Prompt the user to enter a customer number and then displays the corresponding record on the screen Delete the first customer record from the singly linked list. Prompt the user to enter a customer number Delete the given customer record corresponding to the customer number from the singly linked list If the customer number does not exist, please show the error message; ) else if(command is "n") Call getTotalCustomerNumber() method and then displays the total number of customers in the database on the screen else if (command is "q") f 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 Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
