Cody

Problem 2509. Wind Chill Computation

Solution 2980615

Submitted on 22 Sep 2020
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   Fail
wc_correct1 = 23.1871; wc_result1 = ComputeWindChill(32, 10); assert(abs(wc_result1 - wc_correct1) < 0.0001)

Error in solution: Line: 3 Column: 4 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
wc_correct2 = -9.0101; wc_result2 = ComputeWindChill(10, 20); assert(abs(wc_result2 - wc_correct2) < 0.0001)

Error in solution: Line: 3 Column: 4 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

3   Fail
wc_correct3 = 17.4215; wc_result3 = ComputeWindChill(20, 2); assert(abs(wc_result3 - wc_correct3) < 0.0001)

Error in solution: Line: 3 Column: 4 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

Suggested Problems

More from this Author6

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!