Question: In java Java File and Exception Handling Lab Create a Java application that implements a Register and login system. Start with a menu as follows:

In java
 In java Java File and Exception Handling Lab Create a Java

Java File and Exception Handling Lab Create a Java application that implements a Register and login system. Start with a menu as follows: 1. Login 2. Register 3. Exit Login The login option will prompt the user for a username and a 4 digit pin number The login option will check a file called "info.txt" for a matching name and pin combination. Do not specify a file path for this file. Creating it in the project directory is ideal for grading purposes. If a match is found, welcome the user to the system and end the again up to 3 times. program. If no match is found let the user Register Prompt the user for the name and pin number as before but check the file for users with the same name before adding it to the file. If there is a matching name already in the file, then inform the user that they will need to enter a different user name If no match is found add the name and pin number to the file Make sure your program can h the program after registration. andle several users. Do not end Exit This option will just exit the program. The Catch Encrypt the pin number so that the number recorded in the file is not the same as what must be entered by the user during login. Use at least one bitwise cyphering operation in your encryption algorithm. Use try/catch blocks to validate all input. Mak e your program unbreakable

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!