Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

LO 14-6 Describe the product life cycle.

Answered: 1 week ago