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.

  1. Create a new project called04.06Password Generator in the Mod04Assignments folder.
  2. Create a class called SecretPasscode in the newly-created project folder.
  3. Allow the user to select the number of characters in the password.
    1. Theminimumlength allowed should be six.
    2. Ensure the user's choice is valid.
  4. Create a randomly generated password (must include uppercase, lowercase and numbers) and write it to a text file.
    1. Utilize Math.random() and logical operators to create the range of values.
    2. Use anASCIIchart to determine the range of numbers needed to generate the desired characters.
    3. Use concatenation to build each password.
    4. Allow the user to create multiple passwords without restarting the program.
  5. When the user opts to stop, read the passwords from the text file and neatly display them on the screen.
  6. 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

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres a program that generates random passwords based on user input java import javaioFileWriter import javaioIOException import javautilSca... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!