Question: Bank account application Requirement Please write a Java application for managing a bank account as follow: A bank account must have following fields: Account type:

Bank account application

Requirement

Please write a Java application for managing a bank account as follow:

  • A bank account must have following fields:
  • Account type: saving or checking
  • Account number: 6 character long (alphanumeric)
  • Account's creation date (String)
  • Customer's first name
  • Customer's last name
  • Customer's date of birth (String)
  • Customer's last 4 digit of social security number
  • Customer's address (address1, address2, city, state, zipcode)

Field validations

  • Account type must be either "saving" or "checking".
  • Account number must be 6 character long (alphanumeric).
  • Creation date must be a non-empty string.
  • Customer's first name, last name, and date of birth must be a non-empty string.
  • Customer's last 4 digit of SSN must be exactly 4 digits.
  • Address1, City, State and Zipcode must be non-empty string.

NOTE: If any of the above validations failed, the user should be prompted by an appropriate error message and another chance to enter a proper data.

Final Step

The application should ask end user to enter all the information above and then it must display all information except last 4 digit since it is a sensitive information.

Then the user should enter last 4 digit to verify it. This verification can happen up to 3 times, then the user will be prompted by failure or successful message accordingly.

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!