CODE CREATIVE
DATA VALIDATION
Ensuring clean, correct and useful data
Program Description
In this program, you will create an account builder that will ask the user for their profile information. Your algorithm will validate that the user has entered his or her information in the correct format. Following a successful account creation, the program will ask the user to enter their credentials to enter the system.

Your program will ask the user for their profile information, which will include the following:
  • First Name
  • Last Name
  • Zip code
  • Year of Birth (XXXX)
  • Phone Number (XXX-XXX-XXXX)
  • (Extra Credit) Email address
  • Username
  • Password
  • Re-enter Password
When creating the password, ask for the password twice for verification.

The project must follow the rules listed below:

  • Make a method called allAlpha(String str) that returns true if every character in str is a letter, upper or lower case. Must use ASCII values.
  • Make another method called isNumString(String str) that returns true if every character in str is a number. Must use ASCII values.
  • The first and last names are at least 2 letters each and includes no numbers
  • The password is at least 8 characters, contains at least 2 numbers, 1 lower case letter and 1 upper case letter.
  • (Extra Credit) The email address must include an @ as well as a "." The "." must come after the “@" and be part of a domain name. Note that you cannot use regex when writing this function definition.
  • (Extra Credit) The domain name at the end of the email address must follow the conventions found here.
  • The zip code must be all numbers and have 5 digits.
  • Make sure that the person was born on a reasonable date.
  • Ensure that the phone number is valid (no letters and follows the prescribed format xxx-xxx-xxxx)
  • You must have a total of at least 6 class methods defined.
After the user successfully creates their account, prompt them with the login screen asking for their username and password. Allow them into the system only if they enter in the correct credentials.

Watch this video before getting started.
A rubric can be found here.
Sample Output
Welcome to the "Account Creator"!
Enter your First Name: Dani3l
	Error! Your name cannot contain a number.
Re-enter your First Name: Daniel
Enter your Last Name: Lee
Enter your Zip Code: 91108
Enter your Phone Number (XXX-XXX-XXXX): (555) 555-5555
	Error! Your phone number must be inputted with the following format: XXX-XXX-XXXX
Re-enter your Phone Number (XXX-XXX-XXXX): 555-555-5555
Enter your Email Address: [email protected]
Enter your Username: dleesmusd
Enter your Password: password
	Error! Your Password must contain at least 1 number, 1 lowercase and 1 uppercase letter.
Re-enter your Password: passW0rd

** You have successfully created your account! **

Enter your Username: dlee
Enter your Password: password
	Error! Those credentials were not recognized.
Re-enter your Password: passW0rd

** You have successfully entered the system! **