Files
python/exercises/concept/making-the-grade/loops.py

42 lines
1.3 KiB
Python
Raw Normal View History

def round_scores(student_scores):
'''
:param student_scores: list of student exame scores as float or int.
:return: list of student scores *rounded* to nearest integer value.
'''
pass
def count_failed_students(student_scores):
'''
:param student_scores: list of integer studnet scores.
:return: integer count of student scores at or below 40.
'''
pass
def above_threshold(student_scores, threshold):
'''
:param student_scores: list of integer scores
:param threshold : integer
:return: list of integer scores that are at or above the "best" threshold.
'''
pass
def letter_grades(highest):
'''
:param highes: integer of higest exam score.
:return: list of integer score thresholds for each F-A letter grades.
'''
pass
def student_ranking(student_scores, student_names):
'''
:param student_scores: list of scores in descending order.
:param student_names: list of names in descending order by exam score.
:return: list of strings in format ["<rank>. <student name>: <score>"].
'''
pass
def perfect_score(student_info):
'''
:param student_info: list of [<student name>, <score>] lists
:return: First [<student name>, 100] found OR "No perfect score."
'''
2021-05-27 18:51:50 -07:00
pass