Several websites will implement password rules. Write a C++ program that uses a function to check whether a string is a valid password. The password rule is as follows: - A password must have at least eight characters - A password consists of only letters and digits - A password must contain at least two digits Write a C++ program that prompts the user to enter a password and displays "valid password" if the rule is followed or "invalid password" otherwise. Sample 1: Enter a string for password: wewew43x valid password Sample 2 Enter a string for password: 343a Invalid password Document the following information and save it in a README file (Eg. Readme.txt) 1. Analysis: (Descibe the problem including input and output in your own words) Design: (Describe the major steps for solving the problem) Testing: (Describe how you test the program) You are required to submit: 1. The binary source code in C++ 2. The Readme file
Several websites will implement password rules. Write a C++
- A password must have at least eight characters
- A password consists of only letters and digits
- A password must contain at least two digits
Write a C++ program that prompts the user to enter a password and displays "valid password" if the rule is followed or "invalid password" otherwise.
Sample 1:
Enter a string for password: wewew43x
valid password
Sample 2
Enter a string for password: 343a
Invalid password
Document the following information and save it in a README file (Eg. Readme.txt)
1. Analysis: (Descibe the problem including input and output in your own words)
Design: (Describe the major steps for solving the problem)
Testing: (Describe how you test the program)
You are required to submit:
1. The binary source code in C++
2. The Readme file
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images