Question: HashMap Lab John is creating a website login page. He needs your help implement an application that will validate usemame and password. You need to

HashMap Lab
John is creating a website login page. He needs your help implement an application that will validate usemame and password. You need to write a program that will read a data.txt file that contains the full name, username, and password.
Create a HashMap that holds username as key and the password as value.
Create another HashMap that holds the username as key and full name as value.
After the file is read, prompt the user to enter the username and password. If the password is incorrect, give the user two more chances. If the password is incorrect all three times, the program quits.
If the login is successful, print a welcome message. Use the first HashMap to check the username and password match and use the second HashMap to print the welcome message.
Here is data.tre file
LoginValldatorjavaPut all your work in ONE Zip file and submit it in Canvas.Zip filename should be in format of FirstLast_Lab7.zip (ex. JohnDoe_Lab7. zip)Zip file should contain 3 files only:(1) LoginValidator.java(2) Output ocx (screenshot of input and output)(3) Pseudo-code.docx (provide pseudo-code)
Only use the imports provided!
 HashMap Lab John is creating a website login page. He needs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!