So i'm starting my project and I know the project seems really simple to many advance coders.My obstacle is the vagueness of the instructions. I'm puzzled on where i'm suppose to start.
The Instructions: Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName(), addQuiz(int score), getTotalScore(), and getAverageScore(). To compute the latter, you also need to store the number of quizzes that the student took.
Supply a StudentTester class that tests all methods.
What I have so far :
Am I suppose to just name my own students?
If so, why is there getName()method, better yet, how would I use it?
Also, am I suppose to just input the quiz scores myself?
Best Regards,
ladyJava
The Instructions: Implement a class Student. For the purpose of this exercise, a student has a name and a total quiz score. Supply an appropriate constructor and methods getName(), addQuiz(int score), getTotalScore(), and getAverageScore(). To compute the latter, you also need to store the number of quizzes that the student took.
Supply a StudentTester class that tests all methods.
What I have so far :
package edu.westga.cs1301.student;
public class Student {
private String student;
private int score;
public Student()
{
student = new String("John Doe");
score= 0;
}
/**
* This method will get the name of the student
*/
public void getName()
{
}
/**
* This method allows the user to input the quiz score
*/
public void addQuiz(int score)
{
}
/**
* This method gets the total score of the quiz
*/
public void getTotalScore()
{
}
/**
* This method gets the average score of all the quizzes
*/
public void getAverageScore()
{
}
/**
*
*/
}
Am I suppose to just name my own students?
If so, why is there getName()method, better yet, how would I use it?
Also, am I suppose to just input the quiz scores myself?
Best Regards,
ladyJava