Question: The following program contains errors and incomplete. Complete the program below with correct codes. #include using namespace std; class Student{ public: float cgpa; ?

The following program contains errors and incomplete. Complete the program below with 

The following program contains errors and incomplete. Complete the program below with correct codes. #include using namespace std; class Student{ public: float cgpa; ? //missing code }; ? createNode(/suitable parameters*/) { n->cgpa point; n->next = NULL; void addRecord(/*suitable parameters*/) { //insert first node into linked list ? //missing code //insert second node onwards into linked list else { ? //missing code } void display(/suitable parameters*/) { ? //missing code } int main() { float point; char choice; do { cout < < "Enter CGPA point: "; cin >> point; addRecord(?//missing code); cout < > choice; while (choice == 'Y'); cout < < "List of existing record: "; //call display() return 0;

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 Programming Questions!