Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!
image text in transcribed

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

Step: 3

blur-text-image

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

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions

Question

Is SHRD compatible with individual career aspirations

Answered: 1 week ago