A certain company wants to improve the rate at which their login system is accessed and you have been
tasked to carry out this project. In this project, you will consider the problem of organizing a collection of
computer user-ids and passwords. Each time a user logs in to the system by entering his or her user-id
and a secret password, the system must check the validity of this user-id and password to verify that this
is a legitimate user. Because this validation must be done many times each day, it is necessary to
structure this information in such a way that it can be searched rapidly. Moreover, this must be a
dynamic structure because new users are regularly added to the system and some users deleted from the
system.
Upon execution of your program, it should first read the user-ids and passwords from a text file and
create a binary search tree using the user-id as a key (assume unique user-ids for convenience). Once
the tree has been built, it should display the following menu on a Graphical User Interface (GUI):
(1) Add new user
(2) Delete user
(3) Verify user
(4) Print users
(5) Quit
Option (1) and (2) simply add/delete new/existing users. When option (3) is selected, the user is
supposed to enter a user-id and a password. Then, you should search the tree and a print message like
"Valid User" or "Invalid User". When option (4) is selected, the users and their passwords should be
printed out in alphabetical order on a Table. Finally, when option (5) is selected, the elements of the
binary search tree should be stored to a file and execution should be terminated. Create a very good GUI.

question requirements
This project is intended to assess and test the students’ understanding and application of data structures
(especially binary search trees) and their associated algorithms. The project is divided into 3 parts. As
shown:
Part 1: Draw the class diagrams that represents the logic of the program described in the specification
Part 2: Write a program in Java that implements the pseudocode written in part 2.

Recommended Answers

All 2 Replies

Thanks for posting your homework assignment verbatim. Did you have a question relating to it, and some code to show us, or are you just a lazy chancer expecting someone else to do the whole thing for you?

What exactly do you expect anyone to do with that information? Did you have the owner's permission to reproduce that complete document on the web? Have you read the DaniWeb Rules that you agreed toi when you joined?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.