You are the till attendant at a department store. At the start of the day your cinputer will read from file the customer database and store the customer's details in memory. Then, during the day a series of customers will join a queue. Some will be new customers who must be added to the database. The others will want to either buy something or put money into their account. After such a transaction their account details will need to be updated. At the end of the day the system will write the new database to file.
Each customer has a title and a name (so that you can address him or her with a polite personal message and wish him or her a "nice day" when he or she leaves), an account number and balance. The database is a series of such custiomers. The name is a string, theaccount number and the balance are integers. The database consists of a series of such customers, each detail on a separate line. e.g. a typical file might look something like the following :-
The account number is always on the third line with the balance on the fourth. You may assume that no customer is allowed, or would ask for, credit, i.e. all account balances will always be positive. The day's actions will be kept in a separate file.
The first line of each entry in this file will be a string, either join or transact. If it is join then the customer will join the back of the queue. The second line in this case will be customer's title and the third line will be his/her name.
If the first line is transact the customer will either be paying money into his store account or buyingan item. The second line will be either the string buy or pay. In eithercase the third line will be the amount of money which needs to be added or subtracted from their account. Note that you will not be given the name or account number for a transaction, it will simply be the first person in the queue. You must print to screen the details of the days trading. If a customer joins the queue you must report their title and name, i.e. "MrWhyley has joined the queue". If there is a transaction you must say e.g. "Good day Lady Thatcher".
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Do not use Bluej and save them as .java file.