Write a C/C++ driver program that have menu options in the context of question number 1 solution: MENU options 1. Insert an item 2. Remove item at index 3. Remove at first occurrence 4. Remove at all occurrences 5. Counts occurrence times of an item 6. Find position of an item 7. Multiply with a number 8. Show complete list 9. Quit Enter option [1...9]:___ When you select option 1, get an index and item from user to insert item in linked list, and return control to MENU options When you select option 2, get an index of an item from user remove an item at index location, after successful or unsuccessful behavior of removal return execution control back to MENU options again, : : When you select option 9, program will stop working after display the message “Thanks for using linked list program, Allah Hafiz.” Other than 1…9 menu options, program show appropriate message “Incorrect, available options are 1…9, retry again!!!”
Answers
Answer:
Write a C/C++ driver program that have menu options in the context of question number 1 solution: MENU options 1. Insert an item 2. Remove item at index 3. Remove at first occurrence 4. Remove at all occurrences 5. Counts occurrence times of an item 6. Find position of an item 7. Multiply with a number 8. Show complete list 9. Quit Enter option [1...9]:___ When you select option 1, get an index and item from user to insert item in linked list, and return control to MENU options When you select option 2, get an index of an item from user remove an item at index location, after successful or unsuccessful behavior of removal return execution control back to MENU options again, : : When you select option 9, program will stop working after display the message “Thanks for using linked list program, Allah Hafiz.” Other than 1…9 menu options, program show appropriate message “Incorrect, available options are 1…9, retry again!!!”