Question: Write a program to generate random passwords; the user should be able to select the length. Create a new project called04.06Password Generator in the Mod04Assignments
Write a program to generate random passwords; the user should be able to select the length.
- Create a new project called04.06Password Generator in the Mod04Assignments folder.
- Create a class called SecretPasscode in the newly-created project folder.
- Allow the user to select the number of characters in the password.
- Theminimumlength allowed should be six.
- Ensure the user's choice is valid.
- Create a randomly generated password (must include uppercase, lowercase and numbers) and write it to a text file.
- Utilize Math.random() and logical operators to create the range of values.
- Use anASCIIchart to determine the range of numbers needed to generate the desired characters.
- Use concatenation to build each password.
- Allow the user to create multiple passwords without restarting the program.
- When the user opts to stop, read the passwords from the text file and neatly display them on the screen.
- Open theStarterCode406.javafile to begin your program.
Suggestions:Make an outline on paper, use pseudocode, or diagram logic sections with a flowchart.
Step by Step Solution
There are 3 Steps involved in it
Certainly Heres a program that generates random passwords based on user input java import javaioFileWriter import javaioIOException import javautilSca... View full answer
Get step-by-step solutions from verified subject matter experts
