Question: please c++ Instructions You need to generate passwords for a user repeatedly until the user exits the program with O. Each password will have 5

 please c++ Instructions You need to generate passwords for a user

repeatedly until the user exits the program with O. Each password will

please

c++

Instructions You need to generate passwords for a user repeatedly until the user exits the program with O. Each password will have 5 to 15 characters (lower case letters, uppercase letters, and digits). Users enter the length of the password. No special chars and punctuation are allowed in passwords. Each password have at least two, at most four digits at random locations. Number of digits will be randomly determined. You will ask the user to enter the length of the password until the user enters O, meaning to the user wants to exit the program. See examples below. As a part of this assignment, you need to design and call a function that takes one parameter. This parameter determines char to be return from the function: a random upper case letter, or a random lower case letter, or a random digit. How many characters do you want in the password:7 kSOg8k9 How many characters do you want in the password:10 pLs7s5gTs1 How many characters do you want in the password:5 6wx1p How many characters do you want in the password:15 8RGsdTf6w52 PrfT How many characters do you want in the password:0 How many characters do you want in the password:7 kSOg8k9 How many characters do you want in the password:10 pLs7s5gTs1 How many characters do you want in the password:5 6wx1p How many characters do you want in the password:15 8RGsdTf6w52PrfT How many characters do you want in the password:0 Bye... Note: A char variable, such as char x = 122, will be printed as character (such as 'z') on screen. Check an ASCII table. Do not use string library and arrays

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!