Академический Документы
Профессиональный Документы
Культура Документы
char name[50];
struct node *next;
- Provide the user a menu of the following options:
1. Insert
2. Display
3. Count
4. Delete
5. Exit
- Use a conditional statement to evaluate the users
selection
-- if option 1, call function to insert a name
-- if option 2, call function to display the linked list
-- if option 3, call function to display the number of
Point
s
5
5
Function to insert a
new name
Perform Test Case 1
Perform Test Case 2
Perform Test Case 3
Function to display the
linked list
Perform Test Case 4
Function to count
nodes in the linked list
Perform Test Case 5
Function to delete
6
7
8
9
Total
Perform the following test cases
Test Cases
Action
Test case 1
Select option 1
Test case 2
Select option 1
Test case 3
Select option 1
Test case 4
Select option 2
Test case 5
Test case 6
Select option 3
Select option 4
5
5
5
5
5
5
5
5
5
5
5
5
5
5
10
5
100
Expected outcome
Enter a string value to add to the linked list
Enter a string value to add to the linked list
Enter a string value to add to the linked list
Display the elements of the linked list, there
should be three strings displayed
The returned value should be 3
Delete one of the three strings displayed
from selecting option 2
3
Test case 7
Select option 2
Test case 8
Test case 9
Select option 3
Select option 5