Originally Posted by
baueml01
What I have finished so far will not compile in cmd.
There are some syntax errors in the code you posted above, but I would first say to break the problem down. Concentrate on one requirement at a time. I would say strip out all code of the class, then build back up - take the first method to convert C to F
public static double celsiusToFahrenheit(double celsius){
return celsius=(5.0/9.0) * fahrenheit - 32;
}
Where has fahrenheit been declared (the compiler must know what the variables are)? Further, you might want to check the formula for this. It oftentimes helps to write out on paper how you would accomplish this, then move that to code. Try writing this method only - without the other pieces of code. Make sure it compiles before moving forward. Post back if it does not