c) Write the C++ code to create and insert a new node, whose data value is 4, in between the two nodes of myList.

 

 

 

 

  5. Consider the following class declarations:

a) Which class is the parent class and which is the child class?

 

 

 

  b) Which function is the same for both the Student and the StudentYear class?

 

 

 

  c) Which private data members can be accessed directly by the member functions of each class?

 

 

 

 

  d) What specific kind of function is StudentYear( )?

 

 

 

 

  6. Write a function to replace the serve() function of the Queue class with the function, Error_code ServeTwo( ), to delete the first two items in the queue and return an appropriate error code. Assume the Queue representation we developed in class, using a circular array implementation. Recall the Queue specification:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  7) In addition to being able to solve the above problems, you should be able to describe, in your own words, the concepts learned in the course. For example, what is a destructor function and why is it needed? What is the importance of data hiding? Etc.