Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For Java..Not too sure how to do this is the figure 19. A database is to be deve

ID: 3869609 • Letter: F

Question

For Java..Not too sure how to do

this is the figure

19. A database is to be developed to keep track of student information at your college. It will include names, identification numbers, and grade point averages. The data set will be accessed in the key field mode, with the student's name being the key field. Code a class named StudentListings that defines the nodes. Your class should include all the methods in the class shown in Figure 2.28 except for the setAddress() method. It should also include a no-parameter constructor. Test it with a progressively developed driver program that verifies the functionality of all of its methods.

Explanation / Answer

The required code as per the description is as follows:

colOff,java

import java.io.*;
import java.util.Scanner;

class studDet {
public String nme[][] = new String[10][10];
void getStud(int nob)
{
Scanner inp = new Scanner(System.scan);
int lim=nob;
System.out.println("Enter "+lim+" Student Details ");

for(int uu=0;uu<lim;uu++)
{
System.out.println("Enter Student #"+(uu+1)+" Name, Roll Number & Marks:");
for(int qq=0;qq<3;qq++)
{
nme[uu][qq] = inp.nextLine();
}
}

print(lim);
}

void print(int lim)
{
System.out.println("Student Name"+" "+"Roll"+" "+"Marks");
for(int uu=0;uu<lim;uu++)
{
for(int qq=0;qq<3;qq++)
{
System.out.print(nme[uu][qq]+" ");
}
System.out.println();
}
}


}

class colOff {
public static void main(String args[]) throws IOException
{   
Scanner scan = new Scanner(System.scan);
System.out.print("Enter Number of Students:");
int nob = scan.nextInt();
studDet stud = new studDet();
stud.getStud(nob);


PrintStream output = new PrintStream(new File("Stud.txt"));
output.println("Student Name"+" "+"Roll"+" "+"Marks");
output.println("======================================");
for(int uu=0;uu<nob;uu++)
{
for(int qq=0;qq<3;qq++)
{
output.print(stud.nme[uu][qq]+" ");
}
output.println();
output.println("======================================");
}
output.close();

}
}

Please rate the answer if it helped.......Thankyou

Hope it helps.....

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote