So, since the video on just the actual calculations took three videos the public method will not be posted this week. I will probably make the public method video in a couple weeks.
Tag: step-by-step
Fahrenheit to Celsius converter
an example of the actual methods involved in conversion:
an example of the run method or the public main void method to go along with the previous methods shown is down below:
There are some mistakes in the code so I will either redo these or make a video debugging them.
*Actually as far as I can tell the only issue is tytemp being the same as what you gave the program so, for it to work properly just split and move it into the if and else and put the proper notation. So like this:
if(tytemp.substring(0,2).equals(“fa”))
{
test.setFahren(num);
n = test.getCel();
System.out.print(n + “is the temperture in Celsius”);
}
else
{
test.setCel(num);
n = test.getFahren();
System.out.print(n + “is the temperture in fahrenheight”);
}