31.8k views
1 vote
The most important part of developing a program/software is the design process. You are required to describe the following characteristics: purpose. input, process, and output of each function and create three test cases, pseudocode and flowcharts for each of the following questions. Note: Each function should have its own flowchart. You may use any tool you desire to create your flowchart, but it cannot be hand drawn. Please note you are not asked to write and C++ code and pseudocode should not include any C++ elements such as but not limited to semicolons, cout, and cin.

Password Verifier
You will develop a software package that requires users to enter their passwords. Your software requires users' passwords to meet the following criteria:
a. The password should be at least eight characters long
b. The password should contain at least 1 numeric digit
c. The password should contain at least 1 upper alphabetic character
d. The password should contain at least 1 lower alphabetic character
1. Create an application that asks the user to enter a password. The application should use a function called isValid to verify the password meets the criteria. It should display a message indication whether the password is valid or invalid.
2. The isValid function should accept a string as its parameter and return a Boolean value. The string argument is the password to be checked. If the password is valid, the function should return True. Otherwise, it should return False.

User Mezgrman
by
7.9k points

1 Answer

7 votes

Final answer:

The purpose of the Password Verifier software is to check if a user's password meets certain criteria. The input is the password entered by the user, and the process involves checking the length and character requirements. The output is a message indicating the validity of the password.

Step-by-step explanation:

The development process of a program or software involves several characteristics, including purpose, input, process, and output. In the case of the Password Verifier software, its purpose is to verify if a user's password meets certain criteria.

The input is the password entered by the user, and the process involves checking the length of the password and whether it contains at least one numeric digit, one upper alphabetic character, and one lower alphabetic character. The output is a message indicating whether the password is valid or invalid.

To create test cases for the Password Verifier, you could consider the following examples: Test Case 1: Input - 'abc123', Expected Output - Invalid (No uppercase character) Test Case 2: Input - 'Password1', Expected Output - Valid, Test Case 3: Input - '12345678', Expected Output - Invalid (No alphabetic character).

User Danharper
by
7.5k points