This is what I have so far:

import java.util.Scanner; public class Tempertaure { private double tempertaure; public Tempertaure() { tempertaure = 0; } public Tempertaure(double n) { tempertaure = n; } public void read () { Scanner scan = new Scanner(System.in); int n = 0; n = scan.nextInt(); } public double get() { return tempertaure; } public boolean equals(Tempertaure n) { return(this.tempertaure == n.tempertaure); } public Tempertaure add(double n) { Tempertaure result = new Tempertaure(); result.tempertaure = this.tempertaure + n; return result; } public Tempertaure subtract(double n) { Tempertaure result = new Tempertaure(); result.tempertaure = this.tempertaure - n; return result; } public Tempertaure multiply (double n) { Tempertaure result = new Tempertaure(); result.tempertaure = this.tempertaure * n; return result; } public Tempertaure divide (double n) { Tempertaure result = new Tempertaure(); result.tempertaure = this.tempertaure/n; return result; } public Tempertaure toKelvin(double n) { Tempertaure result = new Tempertaure(); result.tempertaure = (5/9) * (n - 32) + 273; return result; } public Tempertaure toFahrenheit(double n) { } public Tempertaure toCelsius(double n) { Tempertaure result = new Tempertaure(); result.tempertaure = (5/9) * (n - 32); return result; } public String toString() { return (Integer.toString((int) tempertaure)); } }

I know all the equations to convert the temperatures to one another. My problem is I don't know how to put them into the program because I could do this if it was only Celsius and Fahrenheit but because Kelvin was added I'm not sure how to fit all the equations into it. I also need a set method as well, but I'm not sure how to start that. Any hints would be greatly appreciated.

Thank you