Cody

# Problem 1501. Try 1.5.4: Celsius to Fahrenheit

Solution 1898657

Submitted on 12 Aug 2019
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
celsiusValue = 1; fahrValue = 33.8; assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

Undefined function or variable 'Celsius'. Error in ConvertCelsiusToFahrenheit (line 4) fahrValue = Celsius*1.8+32 Error in Test1 (line 3) assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

2   Fail
celsiusValue = 0; fahrValue = 32.0; assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

Undefined function or variable 'Celsius'. Error in ConvertCelsiusToFahrenheit (line 4) fahrValue = Celsius*1.8+32 Error in Test2 (line 3) assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

3   Fail
celsiusValue = 100; fahrValue = 212; assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

Undefined function or variable 'Celsius'. Error in ConvertCelsiusToFahrenheit (line 4) fahrValue = Celsius*1.8+32 Error in Test3 (line 3) assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

4   Fail
celsiusValue = -100; fahrValue = -148; assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

Undefined function or variable 'Celsius'. Error in ConvertCelsiusToFahrenheit (line 4) fahrValue = Celsius*1.8+32 Error in Test4 (line 3) assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

5   Fail
celsiusValue = -10; fahrValue = 14; assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))

Undefined function or variable 'Celsius'. Error in ConvertCelsiusToFahrenheit (line 4) fahrValue = Celsius*1.8+32 Error in Test5 (line 3) assert(isequal(ConvertCelsiusToFahrenheit(celsiusValue),fahrValue))