a) Write program code, in a language of your choice,


that implements a function validPassword which accepts a string as an argument and returns true if the string contains a valid password and false if it does not. To do this you will need to implement the following rules:

i) A password must have at least ten characters;

ii) A password consists of only letters and digits;

iii) A password must contain at least two digits;

iv) A password must contain at least two letters.

b) Give FIVE strings that you would use to test a program written as an answer to part a). Explain the purpose behind each of the strings you suggest.

c) Discuss the importance of security as part of the software development process.

Leave an answer

Sorry, you do not have permission to answer to this question .