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
Describe the roles of association Note that each association has roles. For instance, in Figure we can see that two classes, Student and University, have their predefined roles

What is a Decoder ? Ans. Decoder: - This decodes the information. The decoders contain n inputs 7 at the end maximum 2 n outputs since n bit no can decode max 2n infor

How can I model a bi-directional net with assignments influencing both source and destination? Assign statement constitutes a continuous assignment. Changes on the RHS of stat

Q. Total number of registers in a CPU? Factors to consider when choosing total number of registers in a CPU are:  CPU can access registers faster than it can access m

EXPLAIN SIDE EFFECT OF SCAN CONVERSION WITH DIGRAM

What are different control function categories. Explain. In several switching systems, the control subsystem may be an integral part of the switching network itself. This syst

How is communication between computers established in Internet. What characteristics need to be defined in a communication protocol? Explain the physical and logical paths in a com

What is a symbolic constant? How it is defined ? Symbolic constants are constants of any type declared by using the #define compiler directive. It is a preprocessor directive.

What is  Functional Modelling  We know that Data flow modelling is an ordinary technique used for analysis of a problem in software engineering. It is very useful for analyzi

Determine about the Signals to televisions Signals to televisions are now sent digitally thus need a computer to interpret as well as decode these signals into a sound/picture;