MAH051114_20978_42305

Question Paper 1

1)

UML diagram for new class:

 

2)

The new class will read the accounts.txt and readings.txt files and store it in a array list. This class will display the accounts the with the bill.

 

3)

It read the accounts.txt and form the arraylist. Now reads the meter numbers from readings.txt and update the bill for the account.

 

4)

 

How to compile:

javac TestAccount.java

java TestAccount

 Question paper 2

1)

 

How to use

 

To test feilds are provided to give input.

 

Account Number:

Meter Number:

 

search button will take the data from any of these fields and get the results.

 

The results are pasted in the textarea provided.

 

 

2)

 

OutPut file:

 

<Account Number> <D/C>

<Name>

<Address1>

<Address2>

<Bill>

 

3)

 

UML diagram:

 

4)

DataBase class:

 

LoadCustomerNames() reads the all customer list and update the customer information with the           account.

 

DisplayAccounts() display all accounts information with customer details and bill.

 

SearchAccountNumber() search and return the account information using account number      provides as parameter.

 

SearchMeterNumber() search and return the account information using meter number           provides as parameter.

 

CSO class:

 

CSO() it is constructor which provides the GUI.

 

Search() called when ever search button hitted.

 

Exit() to close the application.

 

How to run and compile:

 

javac CSO.java

java CSO