Question: Pls help with number 11. Using the screenshots as a template tion means that the first node in the list (the current head) is deleted.
tion means that the first node in the list (the current head) is deleted. The function does nothing if the specified position is greater than or equal to the length of the list 8. List Template Create a list class template based on the list class you created in the previous program- ming challenges. 9. Rainfall Statistics Modification Modify Programming Challenge 2 in Chapter 7 (Rainfall Statistics) to let the user decide how many months of data will be entered. Use a linked list instead of an array to hold the monthly data. 10. Payroll Modification Modify Programming Challenge 10 in Chapter 7 (Payroll) to use three linked lists instead of three arrays to hold the employee IDs, hours worked, and wages. When the program starts, it should ask the user to enter the employee IDs. There should be no limit on the number of IDs the user can enter. 11. List Search Modify the LinkedList template shown in this chapter to include a member function named search. The function should search the list for a specified value. If the value is found, it should return a number indicating its position in the list. (The first node is node 1, the second node is node 2, and so forth.) If the value is not found, the function should return 0. Demonstrate the function in a driver program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
