Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Certainly Heres a program that generates random passwords based on user input java import javaioFileWriter import javaioIOException import javautilSca...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