Hi! I'm a beginner in Java can you share an answer for this assignment since I already been doing this for a week and I don't know how to answer.
Create a Student class with those attributes:
- grades (it contains grades between 0 and 10)
The Student class will have a constructor to initialize it names.
The Student class also has 6 methods:
- One to get average
- 2 other ones for the names
- A last one for the grades
- A method to add grades , for this one you’ll have to
check if the grade is a number, if it’s not return an error
code. After this the grade has to fit between 0 and 10 if
it doesn’t fit, return another error code. The method
also have to update the average.
- A method that return a description with the names and
grade average, example “Maulana Romar John, has a
grade average of 10/10 ”
Once the class is done create a program to test it