Create a program that keeps track of specific information fo

Create a program that keeps track of specific information for Students. The information stored should be the following:

First Name, Last Name, Major, GPA, UIN, NetID, Age, Gender,

For this simple program we will only need to store 10 students in an ArrayList. Your students should be stored in an object called Student.

You should be able to add, display and remove Students in the ArrayList.

You will submit 2 files for grading: Lab4.java and Student.java

Solution

public class Student{

public String Firstname;

  public String Lastname;

   public String Major;

   public int GPA;

public int UIN;

   public String NetID;

public String Age;

  public String Gender;

public void Student(String Firstname, String Lastname, Sting Major, int GPA, int UIN, String NetID, Sting Age, String Gender) {

this.Firstname = Firstname;

this.Lastname = Lastname;

this.Major = Major;

this.GPA =GPA;

this.UIN = UIN;

this.NetID = NetID;

this.Age = Age;

this.Gender = Gender;

}

public static void main(String[] args){

Student mystudent= new Student((Firstname,Lastname,Major,GPA,UIN,NetID,Age,Gender));

Student[] myarray = new Student[length];

myarray[0] = new Student(Firstname,Lastname,Major,GPA,UIN,NetID,Age,Gender)

}

}

Create a program that keeps track of specific information for Students. The information stored should be the following: First Name, Last Name, Major, GPA, UIN,

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site