Question: Given a C++ program file, Test2(031219)_Q1.cpp, which creates a linked list with the initial state as shown in Figure 1. The variables head and last
Given a C++ program file, Test2(031219)_Q1.cpp, which creates a linked list with the initial state as shown in Figure 1. The variables head and last are pointers that pointing to the first and last node of the list, respectively. Append the appropriate lines of code at the space provided in Test2(031219)_Q1.cpp to accomplish each of the following tasks. Note that, each task is continous from one to the next. You must not change any line of code regarding the class definition and the given lines of code in the display and main function. Figure 7 shows the expected output when the program runs.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
