isdigit isalpha islower isupper isalnum isspace ispunct isprint all can not be used 5152146


PROG 1003 Programming Logic Homework 4- Password Description For this homework we write an application to validate passwords.
PROG 1003 Programming Logic Homework 4- Password Description For this homework we write an application to validate passwords.

isdigit , isalpha , islower, isupper,isalnum, isspace, ispunct, isprint all can not be used for the assignment PROG 1003 Programming Logic Homework 4- Password Description For this homework we write an application to validate passwords. Websites and organizations impose certain rules for passwords (some evidence indicates this is the wrong approach). Suppose the password rules are as follows 1. A password mast have at least cight characters 2. A password mast consist of only letters and digits. 3. A password must contain at least two digits. Specifications: I. Create an Empty C++ project. 2. Add a new file to the Project called – main.cpp. 3. Your application should read from an input file which contains an unknown mumber of passwords. 4. For each password determine if it is valid according to the rules above and do the following a. Ifthe password is valid, write it a file called “valid passwords.txt-one password per line. b. Ifthe password is invalid, write it a file called “invalid passwords.txt-one password per line. c. After all passwords are processed, display on the console the namber of valid passwords and the number of invalid passwords 5. You will not have any user input in this assignment. 6, HINT: Consider first hard coding a variable with a password and test for valid/invalid. Once you knows the password test works, then consider the FILE IO picce. Remember, solve one small problem at a time. Here is a sample ran (assuming a file of 10 passwords) 7. opening password file and processing psswords. 6 passwords are valid (pee file valid passwords, tat 4 passwords are invalid (see file invalid passwords.tat Decumentation You will create a document (docx, tf, pdf) which contains the following 1. Your name and assignment. 2. A screenshot of your code output for three different test runs (three different input files of different length). These are your test cases. You may use the file given as one test case. 3. Answer the following questions, be detailed in your responses. a. Explain the difference between sentinel and counter-based iteration b. What is a stream? c. What are the five steps in file 10? d. What is a dangling resource? What to Submit You will need to subemit your main.cpp and your document, and your input/output files from one test case. Make sure your document is in the comrect format and upload the document, text files, and your cpp file to the Canvas assignment. DO NOT zip your files. PROG 1003 Programming Logic Homework 4- Password Description For this homework we write an application to validate passwords. Websites and organizations impose certain rules for passwords (some evidence indicates this is the wrong approach). Suppose the password rules are as follows 1. A password mast have at least cight characters 2. A password mast consist of only letters and digits. 3. A password must contain at least two digits. Specifications: I. Create an Empty C++ project. 2. Add a new file to the Project called – main.cpp. 3. Your application should read from an input file which contains an unknown mumber of passwords. 4. For each password determine if it is valid according to the rules above and do the following a. Ifthe password is valid, write it a file called “valid passwords.txt-one password per line. b. Ifthe password is invalid, write it a file called “invalid passwords.txt-one password per line. c. After all passwords are processed, display on the console the namber of valid passwords and the number of invalid passwords 5. You will not have any user input in this assignment. 6, HINT: Consider first hard coding a variable with a password and test for valid/invalid. Once you knows the password test works, then consider the FILE IO picce. Remember, solve one small problem at a time. Here is a sample ran (assuming a file of 10 passwords) 7. opening password file and processing psswords. 6 passwords are valid (pee file valid passwords, tat 4 passwords are invalid (see file invalid passwords.tat Decumentation You will create a document (docx, tf, pdf) which contains the following 1. Your name and assignment. 2. A screenshot of your code output for three different test runs (three different input files of different length). These are your test cases. You may use the file given as one test case. 3. Answer the following questions, be detailed in your responses. a. Explain the difference between sentinel and counter-based iteration b. What is a stream? c. What are the five steps in file 10? d. What is a dangling resource? What to Submit You will need to subemit your main.cpp and your document, and your input/output files from one test case. Make sure your document is in the comrect format and upload the document, text files, and your cpp file to the Canvas assignment. DO NOT zip your files.

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now