Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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&Listi, ArrayListType&Listi); Part 5: To test your functions, create an object of student type from ArrayListType and two objects of student type from the Linked ListType, then call your function in appropriate order

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

Explain how lockboxes are used.

Answered: 1 week ago

Question

What are the HRM implications of this type of merger?

Answered: 1 week ago

Question

=+ a. How does this change affect the incentives for working?

Answered: 1 week ago