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 constructor with an argument S and test of type float for member test
Please ignore post, I have no idea what I am talking about.
btw can u explain to me how the heck do i implement a constructor for the code above??
And are we to believe that you were given an assignment in which the variable name was suppose to be "S"? That is hard to believe.
u mean he has been teaching me the wrong things?? oh god he suppose to be 1 of those who knows what he is teaching.
he suppose to be 1 of those who knows what he is teaching.
Please ignore post, I have no idea what I am talking about.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Oh, and have your English professor fired, too.
Please ignore post, I have no idea what I am talking about.
Check out the forum "Meaningless Drivel" you will find lots of people there who appreaciate your sense of humor.
so how to i get the code to read in the names and marks and then print out as following
Please ignore post, I have no idea what I am talking about.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Hey Eugene, you got me in trouble bro.
create a class name studrec that has two private member variable. studname of type string and test of type float
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
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Please ignore post, I have no idea what I am talking about.
studrec[] students = {new studrec( "john" ), new studrec( "mike" , 84 ), new studrec( "peter", 60 ), new studrec( "handsome " ), new studrec( "pretty", 70 )};
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Consider Paul's rocket mass heater. |