Answer:

123 Bob 100
92a-44-33 Kathy Emerson 0

Method to Accept a Deposit

Next, implement the method that accepts a deposit. Deposits will be expressed in cents. The method will have one parameter, the number of cents to be added to the balance. The method will not return a value, so its return type will be void.

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

  //constructors
  . . . .

  // methods
  . . . .

  void  ( int  )
  {

    balance =   +  ;
  }

}

Since the return type of the method is void, no return statement is needed. When the method is run, it will automatically return to the place where it was called from after the last statement of the method is executed.

QUESTION 14:

Complete the method by filling in the blanks.