package workshop.tag6;

public class Gruppe5 {

    public static void main(String[] args) {
        Temperatur t = new Temperatur(20.5);

        System.out.println("Celsius: " + t.getCelsius());
        System.out.println("Fahrenheit: " + t.getFahrenheit());
        System.out.println("Kelvin: " + t.getKelvin());
    }

}

class Temperatur {
    private double celsius;

    public Temperatur(double celsius) {
        this.celsius = celsius;
    }

    public double getCelsius() {
        return celsius;
    }

    public double getFahrenheit() {
        return celsius * 1.8 + 32;
    }

    public double getKelvin() {
        return celsius + 273.15;
    }
}