i need to write a method that in my program student object for the student class that validates it's own data.
background on student class:
it's a program that ask for a name of a student and 3 test scores and print the highest , the lowest and the average.
i need to write a data validation method in which if the user enter a blank name(ex. " "), it prints an error message. if the data entered is valid (ex. "Austin"), it returns the value null.
i will really appreciate you help.