![]() |
|
#1
|
|||
|
|||
random access files!hi there! Im trying to write a program with random access files used in it!I have a structs setted up,what should i do next?
thats is the guidelines to the program: The system should be set up so as to write to, read from and update records at given locations in a random access file using fixed length records. It will consist of 2 files: Customer and the Transaction file The customer information stored should include a customer id, first name, surname and list of accounts. The accounts may be current accounts or deposit accounts. The current account has no interest rate while a deposit account has an interest rate and the interest is earned at the end of the financial year. Note there will be a different set of transactions for each account When a withdrawal or a deposit occurs, a transaction takes place. Information stored on each transaction includes a transaction id (starts at 1 and increments accordingly), the account number , a transaction date, a description, an amount, a transaction type( whether W (withdrawal) or D(deposit) ) and a balance. The transaction type is used to place the amount in the correct column for debits or credits when writing a statement This assumes there is only one transaction per day. Making a deposit The transaction id is set up using the transaction number stored within the account The transaction type is ‘D’ The description, the amount and the balance are set accordingly Similarly making a withdrawal Writing a statement Print a statement for a given month Write the customers account number, name and address Print the transactions for this given month setting out trans id | trans date | description | credit | debit | balance CPP / C++ / C Code:
|
|||
Recent GIDBlog
Install Adobe Flash - Without Administrator Rights by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Random access files | RonR | .NET Forum | 0 | 25-Nov-2007 13:17 |
| Random access files | Krazy_yA | C Programming Language | 6 | 07-May-2006 02:44 |
| access remote files in an application | kris82 | Apache Web Server Forum | 1 | 06-Feb-2006 16:00 |
| Apache2 config issues | monev | Apache Web Server Forum | 2 | 28-Jun-2004 07:19 |
| Can't view pages from another machine on the Intranet | aevans | Apache Web Server Forum | 9 | 14-May-2004 03:26 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The