User Account
Create a class to represent a user account. This should have a username and a password. The password should be kept private, so that it cannot be read outside the class. The system will have a single user, which is set when the program starts. Allow the user to test the login, and to change their password. The change password method should accept the current password, and the new password, and only update the password if the existing passwords match.
Username: GloryPassword: 123Er- Account set.
1: Set account2: Test login3: Change password4: Quit> 2Username: GloryPassword: abc- Login failed
1: Set account2: Test login3: Change password4: Quit> 3Current Password: 123erNew Password: abc123- Failed to change password - invalid password
1: Set account2: Test login3: Change password4: Quit> 3Current Password: 123ErNew Password: abc123- Password changed
1: Set account2: Test login3: Change password4: Quit> 3Current Password: abc123New Password: 123Er- Failed to change password - password reuse