A good answer might be:

class CheckingAccount
{
  // instance variables
  String accountNumber;
  String accountHolder;
  int    balance;

  //constructors
  . . . .

  // methods
  . . . .

  void processDeposit ( int amount )
  {

    balance = balance + amount ;
  }

}

Method to Process Checks

If you have the previous test program in your NotePad buffer, it would be nice to add the processDeposit() method and test it. The method to process a check is slightly more complicated:

Here is a sketch of the method:

void processCheck( int _____________ )
{
  int charge;
  if ( ______________ < 100000 )

    charge = _________
  else

    charge = _________

  balance = ________ - _________ - _________ ;

}

QUESTION 14:

Fill in the blanks to complete the method.