Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with this lab, I have to make password generator, The rules are in the pdf file, thanks. Problem Statement A good password
I need help with this lab, I have to make password generator, The rules are in the pdf file, thanks.
Problem Statement A good password has many requirements. Humans have a hard time meeting these requirements left to their own devices. You are tasked with creating a program that will generate a password based on what the user wants in the password. The user should be able to choose if they want a password with: upper case lower case The user should also provide the length of the password and how much of the password should be comprised of their selections. You can generate in order or out of order (see below). For example: Welcome to Password Creator! How long do you want the password to be? 10 Do you want letters (0-no, 1-yes)? 1 Do you want uppercase letters (0-no, 1-yes)? 1 How many characters of the password should be uppercase? 2 Do you want lowercase letters (0-no, 1-yes)? 1 How many characters of the password should be lowercase?4 Do you want numbers (0-no, 1-yes)? 1 How many characters of the password should be numbers?4 Your random password is: ACbzdf1254 or AtCde1z254 (either would be acceptable passwords) Would you like to create another password (0-no, 1-yes)?0 You need to generate characters and numbers for the password length specified by the user Therefore, you need a way to repeat generating random numbers and characters. You could use a while loop, but it would be more appropriate to use a for loop. For example: for(int i=0; iStep by Step Solution
There are 3 Steps involved in it
Step: 1
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