Data structure
By using Array based list creates a list that saved the average for each student; the class will contain the following: # include <iostream> Using namespace std; Class AVG { Private: int capacity; int size; double * data; Public: AVG(); ~ Avg(); void resizeCapacity(int num) void insert(int index,double f) void push_back(double f) void erase (int index) double& operator[](int index) double& back() void display() -In the Main (): 1. Create a list. 2. Show the following menu: 1] Add a new Student. 2] Show Students. 3] Delete a specific student. 4] Retrieve the last student. 5] Insert a student in a specific place. Choose a number: -Then solve each choice.