Menu

(Solved) : Classroom Students Need Figure Student Improvement Lowest Test Score Highest Test Score Gi Q43990236 . . .

Out of a classroom of students, you need to figure out whichstudent has the most improvement between their lowest test scoreand highest test score. Given an array of objects containing astudents name and test score in chronological order, create afunction that will output the most improvement made by anindividual student. You can assume all students names areunique.

-Remember the highest test score must come after the lowest testscore to be considered an improvement

-A test score can be any integer number – its not always between0-100

-Make sure you try to design a solution that will be astime-efficient as possible

Example

Input:

students = [Mary, Steve, Steve, Mary, Steve]

scores = [19, 70, 99, 80, 100]

Output: 61

Explanation: Mary’s lowest test score was 19,followed by an 80 later on in the year. This means her improvementwas 61. Steve’s highest improvement was 70 -> 100, which is onlyan improvement of 30.

#
# Complete the ‘calculateMostImprovement’ function below.
#
# The function is expected to return an INTEGER.
# The function accepts following parameters:
# 1. STRING_ARRAY students
# 2. INTEGER_ARRAY scores
#

def calculateMostImprovement(students, scores):
# Write your code here

Expert Answer


Answer to Out of a classroom of students, you need to figure out which student has the most improvement between their lowest test …

OR