create a class name studrec that has two private member variable. studname of type string and test of type float.ok implement an accessor method test() that return the test marks implement a constructor that takes in an argument S of type String for studname and the test mark us assignemnt valued. implement a constructor that takes two argument S of type string pass to the constructorwith an argument S and test of type float for member test implement a display()that print member variable save the file as recstud that has an array of 5 students the students are john mike 84 peter 60 handsome pretty 70 //below is what i have code
class StudRec { private String StudName; private float test;
public StudRec(String S) { StudRec = john,mike,peter,handsome,pretty;}
public StudRec(String S, float test) {test = 84,60,70;} public float GetTest() {return test;} public void PrintMember() { System.out.println ("Student Record" +S); }
class RecStud{ public static void main(String[]args) { array studarray=new array(); System.out.println("Student Record" +StudRec());