Question
Using Java: Create a class called Student. The student has a name and a total quiz score. Supply appropriate constructor(s). Supply these methods: getName(), addQuiz(double
Using Java:
Create a class called Student. The student has a name and a total quiz score.
Supply appropriate constructor(s).
Supply these methods: getName(), addQuiz(double score),
getTotalScore(), and getQuizAverage(). You will want to store the numberQuizzes to be able to calculate the QuizAverage
Add a method to the Student class called getNumQuizzes() to return the number of quizzes for this student.
Create code in main() (new class) to perform these tasks:
Create student1 using the student name from the file
Add quiz scores for each quiz score in the file.
Print these items with appropriate labels: Student name, number quizzes, average score
Adam 12.5 15 18 17 19.5 16.5 20 Brittney 20.0 19.5 20 18.5 19.0 20 Charley 13.5 20.0 19.5 20 18.5 19.0 20 18.5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started