Professor Zak allows students to drop the four lowest scores on the ten 100 point quizzes she gives during the semester. Design an apllication that accepts a student name and 10 quiz scores. Output the students name and total points for the students six highest scoring quizzes

Respuesta :

Answer:

Explanation:

Let's do this in Python, we will accept 2 arguments, the student name and an array of the 10 scores. The function would sort the scores out, get the last 6 scores, take the sum and finally out put them with the student name:

def total_six_highest_score(name, scores):

    scores.sort()

    highest_six_scores = scores[4:]

    total_highest = sum(highest_six_scores)

    return name, total_highest