//-------------------------------------------------------------------------
// Class:  StudentNode: maintains a student's information
// Names:  Elizabeth Brandes and Christopher Fuhrman aka "Kit"
// Course: COP 3530 Sprint 2005
// Lab:    Recitation #4; Problem A: Student Government Prize 
// Date:   Wednesday, February 23, 2005
//-------------------------------------------------------------------------

public class StudentNode {

	private String fname;
	private String lname;
	public double gpa;
	
	
	// constructor for a StudentNode
	public StudentNode(String f, String l, double g){
		fname = f;
		lname = l;
		gpa = g;
	}

	//---------------------------------------------------------------------
	// printStudent: accessor method that prints a student's info
	//---------------------------------------------------------------------
	public void printStudent(){ 
		System.out.println(fname+" "+lname+" "+gpa);
	}
		
	//---------------------------------------------------------------------
	// printWinner: accessor method that prints the winning student
	//---------------------------------------------------------------------
	public void printWinner(){
		System.out.println(fname+" "+lname+", with a "+gpa+
			" GPA wins the prize!");
	}

}
