Logo 
Search:

C++ Programming Forum

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds

object orientation programming

  Asked By: Sam    Date: Jul 04    Category: C++ Programming    Views: 1028
  

Consider a real world system of a running bank. Potential visitor may apply to open a
bank account whereas it is the bank administration, do the necessary checks before
allocating accounts to the customers.

You are required to identify object(s) from the above given statements, and the
interaction between the objects. Make an OO model of the given scenario.

a) Make an Object-Model as well as a final Comprehensive Class Diagram to
show all possible:

i) Interacting objects (entities)
ii) Relationship between objects/classes
iii) Attributes and functions of each object/class
iv) The model must include a class named BankAccount

b) The BankAccount class should have the following data for a bank account:

i) Account Number
ii) Account Balance
iii) Number of deposits this month
iv) Number of withdrawals this month
v) Annual interest rate
vi) Monthly service charges

c) The class BankAccount should have the following methods:

i) Constructor
ii) Deposit
iii) Withdrawal
iv) CalcInterest
v) Monthly service charges
vi) Destructor


Things to consider:
a) Use all concepts you have studied so far like data-hiding, abstraction,
encapsulation, inheritance and association.
b) The solution should be according to your own thinking and not taken from some
source as everyone visualises a problem differently.
c) It is recommended to identify as many objects and their relationships as you can
some of them may be eliminated in the next phase.




Task 3 : Implementing Object Oriented Programming Solution


a) Implement an object oriented solution based on your prepared design in Task-2
Where you have developed an Object Oriented Model for Banking Information
System now you have to give its practical prototype in C++. This means to write the
solution of your Task-2 model/design and implement it in the form of classes in C++
syntax(code).

1) You don’t need to give actual implementation in C++ but simple stereotype
(sketch) in the form of C++ code, mentioning Class-Names, their Attributes and
Functions with Access Specifiers.

2) Also you need to show the implementation of inheritance by deriving classes
from their parent/base classes in proper C++ syntax where applicable.

Note: Demonstrate smart use of comments throughout the source implementation.

b) Show a complete implementation of the class BankAccount.

Hint to calculating interest and updating the balance for CalcInterest method: 
Monthly Interest Rate = (Annual Interest Rate / 12)
Monthly Interest = Balance * Monthly Interest Rate
Balance = Balance + Monthly Interest

c) By making effective use of an Integrated Development Environment (IDE), create a
document containing screenshots of the program source code and when it runs.
Link all key elements in your source code to the output screens to explain their
functionality.

Task 4 : Testing Object Oriented Programming Solution

a) What is testing? Describe its purpose and importance
b) Critically review and test your solution in Task-3, provide evidence of testing done
c) Analyse actual test results against expected results to identify discrepancies
d) Make recommendations for improvements
e) Create onscreen help to assist users of the program
f) Create documentation to support and maintain your computer program

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on object orientation programming Or get search suggestion and latest updates.




Tagged: