Question: Write a C program (NOT C++ or C#) that will generate a random password based on a set of rules. The program should ask the

Write a C program (NOT C++ or C#) that will generate a random password based on a set of rules. The program should ask the user the following questions: How long should the password be? Should it contain numbers as well as characters (Y or N)? Should it contain punctuation symbols (Y or N)? Should it contain mixed case letters (Y or N)? Based on the answers provided, an appropriate password should be generated. When you are generating a random password, it should be validated that it did indeed generate a password that met the requirements. If it is not possible based on the rules, then your program should state that. For example, if a password is requested that contains mixed case (2 letters minimum), numbers and a punctuation symbol, then it would not be possible to create a password of length 3.

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!