Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program: Password Check (cpp) In this program you will have to check the validity of passwords (of strings), as will be explained. Define three sets

image text in transcribed

Program: Password Check (cpp) In this program you will have to check the validity of passwords (of strings), as will be explained. Define three sets in the main plan: A. two dimensional array inp_passwd Of characters in size MAX_STRS = 10 Lines, each of which length is MAX_STR_LEN = 100 Cells B. Second array of the same size :out_passwd C. Third array of the same size :mandatory. The user will enter some passwords he wants to check (natural number) =>MAX_STRS This assumption can be placed on all inputs in the program: all are correct, and there is no need to check them. And then the passwords themselves to the array inp_passwd. Possible input will be: 3 Abcd Efg 1234567 Adam Co12? The user will now enter strings using the passwords he entered above. In order for a string to be considered valid it must contain at least one character from each of the strings that the user will now enter. Possible input: 4 0123456789 abcde ABCDE ?! The first number (4) indicates how many strings the user will now enter (similar to what he did before), followed by a series of strings. Therefore, in our example, the string Adam_Co 12? It is OK: it has at least one character understands: 0123456789, it has at least one character understands: abcde ,Has at least one character in it understands: ABCDE And it has at least one character out of .!? Your main point in the program will perform the test task . It will get the above three arrays, as well as some strings in the two arrays that already include data. It will copy to the array out_passwd The proper strings from the array inp-passwd Into the reference parameter it will enter the number of strings copied . That is, it will have six parameters: three arrays of strings, and three integers. Finally, the plan will present the contents of the array out_passwd .Each string will be displayed in a separate row

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions