Page 1 of 1

A- [10 points] Declare a self-referential structure StudentNode for a linked list having one data field called GPA (floa

Posted: Mon May 02, 2022 11:39 am
by answerhappygod
A 10 Points Declare A Self Referential Structure Studentnode For A Linked List Having One Data Field Called Gpa Floa 1
A 10 Points Declare A Self Referential Structure Studentnode For A Linked List Having One Data Field Called Gpa Floa 1 (37.62 KiB) Viewed 44 times
A- [10 points] Declare a self-referential structure StudentNode for a linked list having one data field called GPA (float), and one pointer to StudentNode called next. B - [20 points) Write a non-recursive function that prints all the GPAs that are less than or equal to 2 in your linked list starting from the head of the list. Example: If the list is 1.9->2->3.5->4->1.8, the function should print: 1.9->2->1.8. C- [20 points) Write a recursive function that counts all the GPAs that are higher or equal to 3.5 in your linked list starting from the head of the list. Example: If the list is 1.9->2->3.5->4->1.8, the function should return 2.