Complete the method “readdata”.  In this method you are to read in at least 10 sets of student data into a linked list. The data to read in is: student id number, name, major (CIS or Math) and student GPA.  You will enter data of your choice.  You will need a loop to continue entering data until the user wishes to stop. Complete the method “printdata”.  In this method, you are to print all of the data that was entered into the linked list in the method readdata. Complete the method “printstats”.  In this method, you are to search the linked list and print the following: List of student’s id and names who are CIS majors List of student’s id and names who are Math majors List of student’s names along with their gpa who are honor students (gpa 3.5 or greater) All information for the CIS student with the highest gpa (you may assume that different gpa values have been entered for all students)   CODE (student_list.java)  You MUST use this code: package student_list; import javax.swing.JOptionPane; public class student_list {     public static void main(String[] args)     {             student_data data=new student_data();             data.readdata();             data.printdata();             data.printstats();             System.exit(0);     } } class student_data extends student_node {     student_node first,current,previous;       student_data()     {          //create a dummy first link           first = new student_node();           first.next=null;            previous=first;     }    void readdata()  {        }     void printdata()  {        }    void printstats()  {        }     } class student_node {    int stu_number;    String stu_name;    String major;    double gpa;    student_node next; }

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Complete the method “readdata”.  In this method you are to read in at least 10 sets of student data into a linked list. The data to read in is: student id number, name, major (CIS or Math) and student GPA.  You will enter data of your choice.  You will need a loop to continue entering data until the user wishes to stop.

Complete the method “printdata”.  In this method, you are to print all of the data that was entered into the linked list in the method readdata.

Complete the method “printstats”.  In this method, you are to search the linked list and print the following:

List of student’s id and names who are CIS majors

List of student’s id and names who are Math majors

List of student’s names along with their gpa who are honor students (gpa 3.5 or greater)

All information for the CIS student with the highest gpa (you may assume that different gpa values have been entered for all students)

 

CODE (student_list.java)  You MUST use this code:

package student_list;
import javax.swing.JOptionPane;

public class student_list
{
    public static void main(String[] args)
    {
            student_data data=new student_data();
            data.readdata();
            data.printdata();
            data.printstats();
            System.exit(0);
    }
}
class student_data extends student_node
{
    student_node first,current,previous;
    
 student_data()
    {
         //create a dummy first link
          first = new student_node();
          first.next=null; 
          previous=first;
    }
 
 void readdata()
 {
     
 }
  
 void printdata()
 {
     
 }
 
 void printstats()
 {
     
 }
 
 
}


class student_node
{
   int stu_number;
   String stu_name;
   String major;
   double gpa;
   student_node next;
}

Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Map
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education