Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1: Create a Student Class which has the following attributes: Name, ID, and GPA of the students. For this class you need to implement
Part 1: Create a Student Class which has the following attributes: Name, ID, and GPA of the students. For this class you need to implement the following: - A default constructor A set and get functions for all attributes. Functions to overload the stream insertion and extraction operators - A function to overload == operator which return true if the two students have the same Name ID. and GPA otherwise returns false. Part 2: Include the header file of the template class ArrayListType to your program Include the header file of the template class Linked ListType to your program - Include the header file of the template class StackType to your program. Part 3: Write the implementation of the following member functions to deal with a linked list 1. Modify the implementation of the member function "scarch" that it returns a pointer to the node if the node info is found in the list and NULL otherwise 2. Modify the implementation of the member function "print" and rewrite it using recursion. 3. ReversePrinti: this function should use recursion to print the elements of the linkedlist in the reverse order 4. Reverse Print2: this function should use stackType to print the elements of the linkedlist in the reverse order 5. insert At this function inserts a new node in the location specified in the parameter list. 6. insert After this function adds a new node after the node with the value specified in the parameter list. 7. A function to overload [operator that returns a pointer to the inode in the linked list 1:36 pm Part 4: Add the following nonmember functions - A nonmember function that read the Linked Listinfo from a text file ("info.txt") - A nonmember function that write the linked List info to a new text file (new.txt") - SeparateList: this function takes a linked ListType of students and two ArrayList Type of students: if the student GPA>3 add it to Listl objects otherwise add it to List2, use the following prototype: void separatelist (LinkedListType (students. obj. ArrayListType
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