2014-09-24 HW6

posted Sep 24, 2014, 8:28 AM by Samuel Konstantinovich   [ updated Sep 24, 2014, 8:34 AM ]
Work on designing a BankAccount class. Submit it on the homework server as a ZIP file.

Mac/Linux users:
zip  hw.zip FILENAME
or
zip  hw.zip FILENAME1 FILENAME2 FILENAME3

For this assignment:
zip hw.zip BankAccount.java

Windows users:
1. Download a zip program: winzip, 7zip, winrar
2. Watch a video on how to use it. 


public class BankAccount{
    /*_________________
      Instance variables required:
      balance 
      account [the account number]
      username 
      password 
      pin
      _________________*/

    /*_________________
      1. A constructor: Should accept values for EACH of the instance variables
      2. Set methods for each of the instance variables
      3. Method to deposit money into the account
      4. Method to withdraw money from the account and return true if it was successful, false otherwise
      5. A print method that shows all of the information at once.
      6. A toString method that returns (tab separated): "Name     Account#     Balance"
      7. A main method (included in the same file) to test your code. 
      _________________*/


}

Comments