Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with this exercise3 in C++ Exercise 3: This exercise is designed to get you familiar with the list class in STL .. (45
Need help with this exercise3 in C++
Exercise 3: This exercise is designed to get you familiar with the list class in STL .. (45 minutes coding) 1. Create an empty integer list 2. Add 1, 3, 5, 7, 9 to the end of the list in sequence 3. Add 2, 4, 6, 8, 10 to the beginning of the list in sequence; at the end of this step, you should have the following elements in the list in sequence: 10,8,6,4,2,1,3,5,7,9 4. Print out the first and last element in the list 5. Remove element "3" from the list 6. Sort the list using the sorting method in List Class, but not the one in 7. Print out the value of each element in the list 8. Remove all "odd" numbers in the list 9. Print out the value of each element in the listStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started