Answered step by step
Verified Expert Solution
Link Copied!

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.

  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

Step: 1

Certainly Heres a program that generates random passwords based on user input java import javaioFileWriter import javaioIOException import javautilSca... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java An Introduction To Problem Solving And Programming

Authors: Walter Savitch

8th Edition

0134462033, 978-0134462035

More Books

Students also viewed these Programming questions