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 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
Get step-by-step solutions from verified subject matter experts
