Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

How Do I Use A Database Research Tools You Can Use

Authors: Laura La Bella

1st Edition

1622753763, 978-1622753765

More Books

Students also viewed these Databases questions

Question

Define an analog and a digital signal.

Answered: 1 week ago