How do i get getFirstName() method that returns the first name of the student from user input from Student record instance in MainApp class which contains?
I would advise you to create a getter/setter for both firstname and lastname. Because if the first or last name contains a space then you won't be able to separate them.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
i'm suppose to create an array to store 8 students, user will need to input data 8 student data - name & gpa only
Each element reference to Student class.
it should print "Aaron" as the first name when e.g: "Aaron Carter" & calculate the average gpa is input.
i'm suppose to create an array to store 8 students, user will need to input data 8 student data - name & gpa only
Each element reference to Student class.
it should print "Aaron" as the first name when e.g: "Aaron Carter" & calculate the average gpa is input.
Thanks
To extract the First Name from the Full Name, you can have a look on the JavaString API.
To calculate the average GPA, it is just simple maths. You should have no problem. But If you do, post your code and we would help.
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
Gift giving made easy with the permaculture playing cards