At the end of the activity, the students should be able to: Create a program that handles exception and allows writing to and reading from a text file.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 2E: Create a program named FileComparison that compares two files. First, use a text editor such as...
icon
Related questions
Question
User Log-in
Objective:
At the end of the activity, the students should be able to:
• Create a program that handles exception and allows writing to and reading from a text file.
Software Requirements:
Latest version of NetBeans IDE
• Java Development Kit (JDK) 8
Procedure:
1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive.
2. Create a new project named TaskPerf6. Set the project location to your own folder.
3. Write a program that will:
a. Ask the user to select between two (2) options:
• Register: User shall input his desired username and password. These shall be saved
in a text file named records.txt. Only alphanumeric characters are allowed.
Login: User is asked to input a username and password. Validate using the text file
created from the Register option. If both the username and password are correct,
display the message "Successfully logged in", else, display “Incorrect username or
password".
Transcribed Image Text:User Log-in Objective: At the end of the activity, the students should be able to: • Create a program that handles exception and allows writing to and reading from a text file. Software Requirements: Latest version of NetBeans IDE • Java Development Kit (JDK) 8 Procedure: 1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive. 2. Create a new project named TaskPerf6. Set the project location to your own folder. 3. Write a program that will: a. Ask the user to select between two (2) options: • Register: User shall input his desired username and password. These shall be saved in a text file named records.txt. Only alphanumeric characters are allowed. Login: User is asked to input a username and password. Validate using the text file created from the Register option. If both the username and password are correct, display the message "Successfully logged in", else, display “Incorrect username or password".
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning