Question: Instructions You will create two classes to work together: BankCustomer.java instance variables: private int acctNumber; ranges between 10001 and 99999 private double balance; must be

Instructions

You will create two classes to work together:

BankCustomer.java

instance variables:

private int acctNumber; ranges between 10001 and 99999 private double balance; must be at least 100 private String name; must be at least 5 non-blank characters long

Must contain:

  • 3 set methods, 10 points each = 30 points. These methods should call the BCException if the parameters sent are invalid.
  • 3 get methods, 5 points each = 15 points
  • 1 toString method, 10 points
  • 1 constructor that calls the set methods 10 points. The call to set methods is to make sure that the parameters sent are valid and not to duplicate code.
  • Overall program structure, naming conventions and style (20 points)

BCException.java

instance variable: String message

Must contain:

  • 1 constructor 10 points
  • 1 set method 10 points
  • 1 get method 10 points
  • Overall program structure, naming conventions and style (10 points)

You may create a driver class to test your code. You do not need to submit the driver class with this assignment. The driver class is part of the next assignment.

I am using jGrasp to program not sure how to start, pls help I just want to refresh about the right structure to program this thanks a lot.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!