Question: please write in C++ and use separate files, like .h and .cpp within the project to separate the functions and int main file thank you!

 please write in C++ and use separate files, like .h and

please write in C++ and use separate files, like .h and .cpp within the project to separate the functions and int main file thank you!

This assignment must use Doubly-Linked List with Head Node Specifications: Develop a Doubly-Linked List class based on the following ADT. Name: DL list Data Members: Node * first //a pointer pointing to the first node, e.g., the head node Member Functions bool emptyO //check whether the list is empty void insert(Node new, Node "pred) /insert a new node after the predecessor oid erase(Node *node) /idelete the node from the list void display// display each item on the list, from the beginning to the end DLJist copy// copy the list to a newly-created doubly-linked list; return the newly-created list int listSize0 //return the size of the list. double salc mean0 // calculate, display and return the mean of all students scores on the list uoid search delete(int score)//search to find all nodes with the score specified delete it if it exists The data stored in a Node object is the score of a student. The driver must conduct the following tasks, in the order specified below: 1. Instantiate 30 objects of Node, where the scores are generated randomly (must use a loop) 2. Instantiate a list object. 3. Insert all nodes. 4. Display the list. 5. Display the size of the list. 6. Copy the list to a new list (refer to as the copied list) 7. Use the search delete function to search through the copiedlist and delete all nodes with the particular score specified. 8. Display the size of the copied list. 9. Display the copied list 10. Use the calc mean function to calculate and display the mean for both lists Note: You can add member functions or data members of your own if necessary **NO TIME FUNCTIONS SO IT HAS THE SAME SEQUENCE OF NUMBERS (SAME RANDOM NUMBERS, USE RANDOM GENERATOR FUNCTION

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!