Question: C + + Prog. 1 6 - 1 2 / / Down below will preview my error. Help please fix and display the code if

C++ Prog. 16-12//Down below will preview my error. Help please fix and display the code if possible.
// Instructions
Write a program to test various operations of the class doublyLinkedList. Your program should accept a list of integers from a user and use the doubleLinkedList class to output the following:
The list in ascending order.
The list in descending order.
The list after deleting a number.
A message indicating if a number is contained in the list.
Output of the list after using the copy constructor.
Output of the list after using the assignment operator.
An example of the program is shown below:
Enter a list of positive integers ending with -999:
83
121
98
23
57
33
-999
List in ascending order: 2333578398121
List in descending order: 1219883573323
Enter item to be deleted: 57
List after deleting 57 : 23338398121
Enter item to be searched: 23
23 found in the list.
********Testing copy constructor***********
intList: 23338398121
********Testing assignment operator***********
temp: 23338398121
Your program should use the value -999 to denote the end of the input list.
//This is my failed output
Status: FAILED!
Check: 1
Test: Input / output test 3
Reason: Unable to find '['1\\s+11\\s+23\\s+32\\s+56\\s+84\\s+89','89\\s+84\\s+56\\s+32\\s+23\\s+11\\s+1','1\\s+11\\s+32\\s+56\\s+84\\s+89','32 found in the list']' in the program's output.
Enter a list of positive integers ending with -999:
List in ascending order: 1156898412332
List in descending order: 3223184895611
Enter item to be deleted: Deleted 23 from the list.
Enter item to be searched: 32 found in the list.
********Testing copy constructor***********
intList: 11568984132
copyList: 11568984132
********Testing assignment operator***********
intList: 11568984132
temp: 11568984132
.
Error : AssertionError - Unable to find 1\s+11\s+23\s+32\s+56\s+84\s+89 in the program's output.
Timestamp: 2024-09-2704:24:28.676423
Status: FAILED!
Check: 2
Test: Input / output test 2
Reason: Unable to find '['1\\s+2\\s+2\\s+3\\s+12\\s+13\\s+36\\s+51\\s+52\\s+99\\s+132\\s+564\\s+984\\s+3694\\s+4894','4894\\s+3694\\s+984\\s+564\\s+132\\s+99\\s+52\\s+51\\s+36\\s+13\\s+12\\s+3\\s+2\\s+2\\s+1', 'The item to be deleted is not in the list', '98 is not in the list']' in the program's output.
Enter a list of positive integers ending with -999:
List in ascending order: 369951521324894336942125649842113
List in descending order: 131298456412236943489413252519936
Enter item to be deleted: 555555 not found in the list.
Enter item to be searched: 98 not found in the list.
********Testing copy constructor***********
intList: 369951521324894336942125649842113
copyList: 369951521324894336942125649842113
********Testing assignment operator***********
intList: 369951521324894336942125649842113
temp: 369951521324894336942125649842113
.
Error : AssertionError - Unable to find 1\s+2\s+2\s+3\s+12\s+13\s+36\s+51\s+52\s+99\s+132\s+564\s+984\s+3694\s+4894 in the program's output.
Timestamp: 2024-09-2704:24:28.678835

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!