have a question:
First of all write the code for a Customer class.
It will need features for the name, title, etc.
These should all be declared as private.
you will need methods for returning there features and a constructor
which will take as an parameter list all the detaild read from the file.
You will also need methods to add and subtract from their account. Save this file as Customer.java.
Next consider the databse class. How you store the data is up to you,
consider an array or a list and look up on sun.java.com web site how to use these classes.
You will need features to construct the database(these will of course only be one),
how to add a customer to the database, how to search the database for a custoner's name,
balance and title and how to rewrite the database to file at the end of the day.
This file will be called Database.java.
Again you must consider security and code hiding.
The next task is to write a Queue.class. You will need to consider storage, adding to the back,
getting info from the front person, removing the front person, etc.
Finally
you should write the Store class which will contain the main method and run the program.
This will need to read the database, construct Customer objects and add them to the Database object.
It will then read the transaction file one piece at atime, reporting on the state of the queue or transaction.
It will update the queue for each action, and update customer's records where necessary.
When the file is finished and the queue is empty it will report "Closing time" and rewrite the database.
there is some difficult to solve this question for me . help me please!!!
thanks a lot!!!