Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#####Python only !!!!!!!!!!! Implement a class Student. For the purpose of this

ID: 3694367 • Letter: #

Question

#####Python only !!!!!!!!!!!

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(score), getTotalScore(), and getAverageScore(). To compute the latter, you also need to store the number of quizzes that the student took. Below is the program that runs Student class.

# Create a new student.

s = Student("Bob")

# Add some quiz scores.

s.addQuiz(50)

s.addQuiz(90)

s.addQuiz(75)

# Show that the total and the average are computed correctly.

print(s.getName(), "had a total score of %f." % s.getTotalScore())

print("The average score was %.1f." % s.getAverageScore())

Explanation / Answer

*************************************************************************************************************************************

Hope this will help you!

Thank you!