Hello and yes, this question has been answered multiple of times
but ... what i feel is the answer is abit different
and the answer are different from each other ... so i would
like for the expert to explain and help me with this questions by
adding some comments in the source code so that i can
understand it easily since linked list is something new to me
Given the following Student class, Node class and LinkedList class ADT's. public class Student { String Iduitm; String name; int part; int copa; Student ();//constructor Student (String, String, int); public String toString(); getIdUitm (); getName(); get Part (); getCgpa (); //storer method //accessor method. } public class Node. { Object data; Node next; } public class LinkedList { private Node first, last, current; public LinkedList ();//constructor public void insertAtBack(object item) public Object removeFromFront (); public object getFirst () public Object getNext() public boolean isEmpty() //other definition a) Write a program segment to store 20 data into a Linked List named StudentLL (3 marks) b) Use method removeFromFront () to transfer all part 5 student into Part5StudentLL, otherwise transfer into Others PartLL. (4 marks) c) Count and display the number of students in the others PartLL Linked List. (3 marks)
d) Find the highest cgpa from part 5 students and display info of the highest student. (5 marks)
Hello and yes, this question has been answered multiple of times but ... what i feel is the answer is abit different an
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Hello and yes, this question has been answered multiple of times but ... what i feel is the answer is abit different an
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!