Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Compulsory Task 1 Follow these steps: Open the Java file Errors.java. Attempt to compile the program. You ll notice the compilation will fail due to
Compulsory Task
Follow these steps:
Open the Java file Errors.java.
Attempt to compile the program. Youll notice the compilation will fail due
to some errors. Fix all the compilation errors and compile the program
again. Every time you fix an error, add a comment to the line you fixed and
indicate which of the three types of errors it was.
Now run the program. Once again, youll encounter some errors this time,
runtime errors Fix these errors and run the program once again to see if
it works.
Now run the program and notice the output. Youll notice that there are
some logical errors in the code. Fix these errors and run the program once
again to see if it now correctly displays what it should.
Compulsory Task
Follow the instructions above on how to debug a program using Eclipse.
Create a password authenticator that asks a user to create a password. The
program will ask them to type the password the first time and then ask
them to type it in again to confirm.
The password is deemed unusable if it does not contain a number or the
two inputs dont match.
Every password entered by the user should be written to a text file.
Print out whether the password has been created or not. If it has not been
created, specify what the user needs to fix and ask the user to try again.
Use defensive programming to write this program in a manner that is
robust and handles unexpected events and user inputs.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started