Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that simulates a system login process. Prompt the user with a screen similar to following: -------------------------------- 1. Login to the system 2.

Write a program that simulates a system login process. Prompt the user with a screen similar to following:

--------------------------------

1. Login to the system

2. Create an Account

3. Change Password

-------------------------------

If the user the chooses option 1 present them with the following login screen

-------------------LOGIN TO SYSTEM----------------------------

Login name:

...

Password:

-------------------------------------------------------------------

Allow them 3 attempts to enter the proper credentials. If they exceed the 3 attempts issue the message "Your account has been locked!" (Don't really lock them out of the account. Just issue the message).

If the user tries to login with a login name that doesn't exist issue the error message: "Non-existing Account!"

and then just return to the login screen.

If the user the chooses option 2 present them with the following screen

-----------------CREATE ACCOUNT------------------------------

Create Username:

...

Create Password:

---------------------------------------------------------------------

You must make sure the Username doesn't already exist. If it does issue an error message indicating such and just re-display the prompt "Create Username:"

When the user creates a password create a class as described in the file below (password.pdf) which will validate password creation.

If the user the chooses option 3 present them with the following login screen

-------------------CHANGE PASSWORD----------------------------

Login name:

...

Password:

---------------------------------------------------------------------

If the user chooses to change their password. First, prompt them to login as usual (allow the typical 3 attempts).

If the user passes the login test then prompt them to change their password using the rules as describe in the file below (password.pdf). However, one additional restriction:

If the user tries to reset their password with a password that they already have used then let issue an error message: "Password cannot be one that was used previously." (NOTE: This only applies to the most recent password. It will be extra credit {2% extra} to check for a history of past passwords). Create a special exception to be thrown for this situation called "PreviousPasswordException." If this exception is thrown just catch it and allow the user another attempt.

Maintain a binary file called "accountdata.dat" which will save all login and password information.

Sorry in java please.

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_2

Step: 3

blur-text-image_3

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

Has the priority order been provided by someone else?

Answered: 1 week ago

Question

Compare the current team to the ideal team.

Answered: 1 week ago

Question

Are the rules readily available?

Answered: 1 week ago