Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use JAVA language and Object-Oriented Programming Only. Bank account application Requirement Please write a Java application for managing a bank account as follow: A

Please use JAVA language and Object-Oriented Programming Only.

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

Accounting And Auditing Research And Databases Practitioner's Desk Reference

Authors: Thomas R. Weirich, Natalie Tatiana Churyk, Thomas C. Pearson

1st Edition

1118334426, 978-1118334423

More Books

Students also viewed these Databases questions