Solve
this Write a C++ class that implements a stack using a linkedlist. The type of data contained in the stack should be double. Themaximum size of the stack is 30. Implement the following methods: .· Constructor and destructor; // 5 pts · void push (double value);// pushes an element with the value into the stack. 5 pts. · doublepop (); // pops an element from the stack and returns its value. 5pts. · int isEmpty(); // returns 1 if the stack is empty, 0otherwise. 5 pts. · int numElements(); // returns the number ofelements in the stack. 5 pts. · void print Elements(); // print outthe current stack to the console. 5 pts. · A main function; //execute each method of your stack (except the destructor) at leastonce without asking input from the users.