Responsibilities of objects, Computer Engineering

The Transaction object is responsible for reading the transaction file, finding the relevant account in the array of customers and applying the transaction. To find the relevant account a matching function within the Customer class can be used. A transaction can be applied by calling a function within the Customer class which in turn calls a function in the savingsAccount class. See UML modelling above. You may choose to alter the function specifications if required. As indicated above Customer objects provide the access to the accounts including searching.

The savingsAccount objects provide basic operations such as deposit, withdrawal, adding interest, getting a balance and account number matching.

Typical data to be found in the file is as follows:

24689

250.00

C

123456

100.00

D

A transaction record is in three parts, firstly an account number, secondly an amount and thirdly a transaction code (C = credit, D = debit, I = add interest). Assume all transactions are valid i.e. generate no errors.

Posted Date: 3/11/2013 5:56:13 AM | Location : United States







Related Discussions:- Responsibilities of objects, Assignment Help, Ask Question on Responsibilities of objects, Get Answer, Expert's Help, Responsibilities of objects Discussions

Write discussion on Responsibilities of objects
Your posts are moderated
Related Questions
Illustrate the Encryption and Decryption methods One of the best method of ensuring security is to change the form of communication. Let the messages be encoded in such a patte

Define a Gate Fix ASIC-based design in short. Gate Fix ASIC-based design: A Gate Fix implies that a select number of gates and their interconnections may be subtracted or ad

Explain definition of fibonacci Where an input value gives a trivial result, it is returned directly, otherwise the function calls itself, passing a changed version of the inpu

Q. Convert the following from octal to binary, decimal, hexadecimal and BCD. a) 7.7 b) 4037 c) 23.34

Q. What is Memory Interleaving? In this scheme main memory is splitted in 'n' equal-size modules and CPU has separate Memory Base register and Memory Address Register for every

What are the different message types available in the ABAP/4 ? There are 5 types of message types available. E: ERROR W-WARNING I -INFORMATION A-ABNORMAL TERMINA

Explain Yet another Compiler-Compiler. YACC uses for "Yet another Compiler-Compiler": Computer program input usually has some structure; actually, all computer programs which

Question: (a) Assume you are a taxi driver. Your taxi can hold four passengers. Passengers pay a flat fee for a ride to the airport, so your goal is to pick up four passengers

Random Search - artificial intelligence: Some problems to be solved by a search agent are more creative in nature, for example, like in writing poetry. In this case, it is oft

When producing a datapool, you state the kinds of data (called data types) that the script will send for example, customer names, addresses, and unique order numbers or product nam