Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help in C++. Please answer all questions. Thank you. Part I: array_based list A. The following declaration is for problem 1 and 2: const
Please help in C++.
Part I: array_based list A. The following declaration is for problem 1 and 2: const int MAX=10; class AList public: Chain0: void PrintAIO void Delete(int k, int&x,bool &success); delete element at the position with index k and save it in x void Insert(int k, int x, bool &success); ll insert element x at the position with index k private: int list[MAX] int size; AList Chain; bool flag; int y; Assume you have a list of integers stored in a array-based list with the name of Chain declared as above and has the following integers 1. 10 12 18 21 Show the contents of Chain and the value of flag after you execute each statement of the following program segment: Chain::Insert(2, 6, flag); Chain::Insert(9, 25, flag); Chain::Delete(0, y, flag); Chain::Delete(8, y, flag); Assume you have a list of integers stored in an array-based list with the class name AList declared as above. Write the PrintAllO method for the AList class to prints out all values in the list that are greater than 10. 2. B. With the following declaration, do problem 1&2: const int MAX-10; class AListf public : Chain0 Please answer all questions.
Thank you.
Step 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