Machine Problem # 6
Account Management
INSTRUCTION
1.
Write a program that will let the user to register.
2.
The program will display a menu that contains registration and logging in.
3.
The program will accept registration input for the personal info and account information.
4.
The program will able to validate the uniqueness of the user account such as the
username and email address.
5.
The program will able to login the created account.
6.
The program will able to identify the existence of the user account.
7.
The program will let the user to access their account such as displaying their info and
changing their password.
8.
The change password must have a validation for correct old password, new password
and confirm password.
9.
The program uses classes and objects.
OUTPUT
//for Display Information
ACCOUNT MANAGEMENT
Account Information
[1] Login
Name:
[2] Register
Username:
Option:
Email Address:
Contact No.:
//for Login
Address:
Username:
Password:
//for Change Password
Welcome name_of_the_user_account!
Old Password:
New Password:
Confirm Password:
You successfully changed your password.
Account Information
[1] Display Info
[2] Change Password
[3] Back
Option:
//for Registration

Personal Information
Full Name:
Email Address:
Contact No.:
Address:
Account Information
Username:
Password:
Confirm Password:
You successfully registered!



package machine.problem.pkg6;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class MachineProblem6 {
public static void main(String[] args) throws Exception {
Scanner input = new Scanner(System.in);
String Name = "", Email = "", Address = "",
Username = "", Password = "", Cpassword = "",
loginUsername = "", loginPassword = "",
ChangeOldPass = "", ChangeConfirmPass = "", ChangeNewPass = "";


You've reached the end of your free preview.
Want to read all 16 pages?
- Winter '17
- Mr. Cute