Cody

Solution 2140935

Submitted on 26 Feb 2020 by karthik raj
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
F = [75 82 97 65]; C_correct = [23.8889 27.7778 36.1111 18.3333]; assert(all(abs(temp_convert(F) - C_correct) < 1e-4))

C = 75 82 97 65 n = 4 c = 23.8889 C = 23.8889 82.0000 97.0000 65.0000 c = 27.7778 C = 23.8889 27.7778 97.0000 65.0000 c = 36.1111 C = 23.8889 27.7778 36.1111 65.0000 c = 18.3333 C = 23.8889 27.7778 36.1111 18.3333

2   Pass
F = []; C_correct = []; assert(all(abs(temp_convert(F) - C_correct) < 1e-4))

C = [] n = 0

3   Pass
F = [-1; 1200]; C_correct = [-18.3333;648.8889]; assert(all(abs(temp_convert(F) - C_correct) < 1e-4))

C = -1 1200 n = 2 c = -18.3333 C = 1.0e+03 * -0.0183 1.2000 c = 648.8889 C = -18.3333 648.8889