The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
C++!
Â
C++ Hash Assignment
In this assignment, 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 file and create a hash using the user-id as a key (assume unique user-ids for convenience). Note: Initially it will be empty.
Â
Once the hash has been built, it should display the following menu:
Â
(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.
Â
Finally, when option (5) is selected, the elements of hash should be stored to a file and execution should be terminated.
Â
Test all options.
Print out File.
Write your conclusions.
Include code.
Screen prints of successful execution.