All problems
T-Score Conversion
Problem
Return the T-score 50 + 10*(raw - mean)/sd, a standard score with mean 50 and standard deviation 10. Return 0.0 when sd <= 0.
Hint
It is the z-score linearly rescaled.
Test cases
case 1
in: [60,50,10]
expected: 60
case 2
in: [30,50,10]
expected: 30
case 3
in: [50,50,10]
expected: 50
case 4
in: [75,50,15]
expected: 66.66666666666667
case 5
in: [10,50,0]
expected: 0
Starter codePython
def t_score(raw, mean, sd):
# Your code here
pass5 test cases · run your code against them in the editor