Write a program to generate random passwords; the user should be able to select the length. Create
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date: