DSA Programming Assignment-IV
DSA Programming Assignment-IV
Programming Assignment-IV
(Singly Linked List)
1. Write a menu driven Java Program using class, methods and reference variables, to construct
a singly linked list consisting of the following information in each node: student regd_no
(int), mark secured in a subject (float).
class Node
{
Define the methods for each of the following operations to be supported by the above
c) Search a node based on student regd_no and update the mark of the student. If the
specified node is not present in the list an error message should be displayed.
d) Sort the nodes of the linked list according to the mark secured by the student from
higher to lower.
default:
System.out.println("Wrong choice");
}
}
}
************