Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

c++ code Class List Instructions Create a program for an instructor to create a

ID: 3644077 • Letter: C

Question

c++ code
Class List
Instructions
Create a program for an instructor to create a class list. The program will ask the user to enter the class code, name, section, and the names of each of the students in the class to record them in a txt file. The names will then be recovered from the file and entered into an array. The names will be sorted and output to display in alphabetical order.

Explanation / Answer

class List { struct Node { int data; Node * next; }; Node * head; public: List() { head = NULL; } ~List() { while(head != NULL) { Node * n = head->next; delete head; head = n; } } void add(int value) { Node * n = new Node; n->data = value; n->next = head; head = n; } // ... };

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote