i think im more in the ballpark in what the assignment says..my errors are coming in the output
import java.util.Scanner;
public class Assign8_Roberts{
//Converts between CandF
private double celsius;
private double fahrenheit;
//converts from CtoF
public void CeltoFahr(double temp){
fahrenheit = (9.0/5.0*temp) + 32;
celsius = temp;
}
//converts from FtoC
public void FahrtoCel(double temp){
celsius = (5.0/9.0) * (temp-32);
fahrenheit = temp;
}
//displays temp in C
public void outputCelsius(){
System.out.println("The temperature is " + celsius + "C");
}
//displays temp in F
public void outputFahrenheit(){
System.out.println("The temperature is " + fahrenheit + "F");
}
//output
public static void main(String[] args) {
Scanner temp = new Scanner(system.in);
temp t = new temp();
t.setCelsius(100);
t.outputFahrenheit();
t.outputCelsius();
}
}