Lab Assignment # 5

Classes and Objects

Due Date Wednesday, May 12, 2004

In this lab, you will write a bank account program which consist of two classes; BankAccount and Transactions. The BankAccount class will have only one attribute, balance. You will decide the constructor and methods for this class depending on the transactions. Assume every account has an initial balance of RM500.

A sequence of inputs and outputs are given below:

            

           

           

           

                                               

           

           

           

           

 

Evaluation:

Documentation                                                                       /3
    - make sure your initial comments are on each class                          
    - each method should be commented as to purpose

Class definition                                                                      /5
    - access control to variables
    - constructor definition
    - methods for all transactions
   

Use of While loop                                                                  /4

Correct Output of Test Case                                                   /3

Total                                                                                     /15

 

Hosted by www.Geocities.ws

1