I have a C++ code that lets me enter, display and delete astudent record. I need to implement a function that prints theaverage grade score of the students I input.
Below is my code and a picture of how my code looks rightnow.
#include<iostream>
#include<stdlib.h>
using namespace std;
//Node Declaration
struct node
{
string name;
string id;
int score;
node *next;
};
//List class
class list
{
private:
//head represents start node, tailrepresent last node
node *head, *tail;
public:
list()
{
head=NULL;
tail=NULL;
}
void createnode(string name,stringid,int score)
{
//Create a newnode temp with passed data
PayPal Gateway not configured
PayPal Gateway not configured