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:







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
Q. What is Program Annotation Packages? A quite renowned scheme in this field is OpenMP a newly designed industry standard for shared memory programming on architectures with u

Q. What do you mean by instruction cycle? We have considered the instruction execution in previous section. Now let's consider more about different types of instruction executi

Question: (a) What are effect presets and how can they be helpful? (b) Explain the difference between digital zoom and optical zoom. (c) Explain exposure in the context o

Q. What is the working of Sound cards? Multimedia has become a very significant part of today's PC. Home user wants hear songs and watch movies. The Software developer hacking

In a LAN network every system is identified by? In a LAN network all systems are identified through IP Address.

Q. What is Serial Mouse? Mice that use standard serial port are known as 'serial'. Because Serial ports 1 and 4 (COM1, COM4 under DOS, /dev/ttyS0 and /dev/ttyS3 under Unix/GNU-

What is the advantage of wrapping database calls into MTS transactions? Ans) If database calls are made within the context of a transaction, aborting the transaction will undo a

Microprocessor is a program-controlled device, which fetches the instructions from memory, decodes and implements the instructions. Most Micro Processor is single- chip devices.

Explain Formats supported in Linux for executable programs. Linux supports two formats for executable programs: a. Out-binary format b. ELF - dynamic libraries