The convertCelsiusToFahrenheit method must correctly convert degrees Celsius to degrees Fahrenheit and return the result.
RECOMMENDATION FROM YOUR MENTOR
When converting degrees, use the factor 9/5. To get the correct result, use doubles (not ints) to calculate this fraction. The conversion can be expressed as: double fahrenheit = 9 / 5.0 * celsius + 32.
This is the error message I am getting
package com.codegym.task.task01.task0130;
/*
Our first converter!
*/
public class Solution {
public static void main(String[] args) {
System.out.println(convertCelsiusToFahrenheit(41));
}
public static double convertCelsiusToFahrenheit(int celsius) {
//write your code here
double Fahrenheit = 9/5.0*celsius + 32;
return celsius;
}
}