1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 19:36:26 +02:00

ID-5: Aufgabe 2 bearbeitet

This commit is contained in:
Jim Martens
2014-05-09 14:39:09 +02:00
parent 64a4762a1f
commit 4d8ed895e2
10 changed files with 542 additions and 0 deletions

View File

@ -0,0 +1,10 @@
public class Umrechner {
public int convertToCelsius(int fahrenheit) {
return Math.round(5.0f / 9.0f * (fahrenheit - 32));
}
public int convertToFahrenheit(int celsius) {
return Math.round(1.8f * celsius + 32);
}
}