Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am kind of confuse about this assignment please help. Please read really caref

ID: 3905003 • Letter: I

Question

I am kind of confuse about this assignment please help. Please read really careful. I feel like this is confusing

The password generation program is somewhat simple. First, the user will enter their last name. In this program, students that have last names beginning with A-M will change their passwords between the 15th and the 20th of every month. Students that have last names beginning with N-Z will change their passwords between the 20th and the 25th of every month. Next the user will input a multi-digit integer. Afterwards, the user will input a string. Lastly the user will select how many passwords they would like to generate with this information. The program then uses this information to randomly generate passwords using this data. The program will not execute if the current date is not correct. Using this information, please create a Black-Box testing plan for the program.

Task: You must design a complete Black-Box testing plan for the given program. Your task is to apply what you have learned about black-box testing techniques to develop a full suite of test data for this program. Use the template file provided in the Instructions and supporting files on BlackBoard to organize your tests and test data.

Your file must include the following four sections with test data for each:

1. Test data that covers representative inputs

2. Test data that provides functional coverage

3. Test data that provides for boundary-values testing

4. Test data that implements special-values testing

this right here is the template that they gave us:

Assignment 3 Solution Template

Fill in the information for each test that you develop for the 4 tables below. Add more rows as required to list all possible tests for each type. Do not repeat tests which have already been used to test a particular description. Use as many rows as needed to capture all of your tests. Each of the four tables may span more than one page if necessary.

Representative Input Tests

Test #

Test Description

Test Data

Expected Result

Actual Result

Pass/Fail

1

Give input in normal range

12345, hello, 5

5 randomly generated passwords of length 10

5 randomly generated passwords of length 10

pass

Functional Coverage Tests

Test #

Test Description

Test Data

Expected Result

Actual Result

Pass/Fail

1

Test that generating 10 passwords works correctly

123, hi, 10

10 randomly generated passwords of length 5

10 randomly generated passwords of length 5

Pass

Boundary Values Tests

Test #

Test Description

Test Data

Expected Result

Actual Result

Pass/Fail

1

Test a 1 digit integer

1, hello, 5

5 randomly generated passwords of length 6

5 randomly generated passwords of length 6

Pass

Special Values Tests

Test #

Test Description

Test Data

Expected Result

Actual Result

Pass/Fail

1

Test generation of 0 passwords

12345, hello, 0

Program will end without printing anything

Program will end without printing anything

Pass

And finally this is the function main.cpp that they gave us as well:

main.cpp:

Representative Input Tests

Test #

Test Description

Test Data

Expected Result

Actual Result

Pass/Fail

1

Give input in normal range

12345, hello, 5

5 randomly generated passwords of length 10

5 randomly generated passwords of length 10

pass

Explanation / Answer

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#include <time.h>

int myMenu();

void genPassword();

void verPassword();

void randNum();

void main()

{   

char upperCase[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }; // Upper case letters for the gen

char lowercase[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}; // Lower case letters for the gen

int num[] = {'1', '2', '3', '4', '5', '6', '7', '8', '9', '0'}; // numbers for the gen,

char symbol[] = {'!', '£', '$', '€', '%', '^', '&', '*', '(', ')', '@', '#', '<', '>', '?', '+', '=', '-'}; // symbols for the gen

int passwordLength; // how long the password will be

int iMenu; // variable for the menu

int r = 0

do

{

iMenu = myMenu(); // set iMenu to be the method myMenu()

switch(iMenu) // switch to choose menu

{

case 1:

{

genPassword();

break;

}//End case 1

case 2:

{

verPassword();

break;

}//End case 2

case 3:

{

printf(" Goodbye");

break;

}//End case 3

default:

{

printf(" Please choose a menu choice");

break;

}// End default

}//End Switch

}while(iMenu != 3); // End do while

printf(" ");

system("pause");

}// End main

int myMenu() //The menu

{

int myChoice;

system("cls");

printf(" Welcome");

printf(" 1. Generate Password");

printf(" 2. Verify Password");

printf(" 3. Exit");

printf(" Enter a Choice: ");

fflush(stdin);

scanf("%d", &myChoice);

return(myChoice);

}// End myMenu

void randNum()

{

srand(time(NULL));

r = rand();

}

void genPassword()

{

printf("Password generator");

printf(" ");

system("pause");

} // End genPassword

void verPassword()

{

printf("Password verifier");

printf(" ");

system("pause");

} // End verPAssword