1. 
/**
* Angewandte Mathematik, SS11
* Problem: 11984 A Change in Thermal Unit
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=84&page=show_problem&problem=3135
*
* @author Ritter Marius
* @author Wende Tom
* @author Zehentbauer Stefan
* @version 1.0, 06/20/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.180
*/

import java.util.Scanner;


public class Main {

public static void main(String[] args){
Scanner scr = new Scanner(System.in);
int eingabe = scr.nextInt();
double c;
double f;
double ftemp;
for(int i = 1; i <= eingabe; i++){
c = scr.nextInt();
f = scr.nextInt();
ftemp = 9*c/5+32;
f = f+ftemp;
c = (f-32)*5/9;
System.out.printf("Case %d: %.2f\n", i, c);
}

}

}

2.


/**
* Angewandte Mathematik, SS11
* Problem: 11984 A Change in Thermal Unit
* Link:
*
* @author Schramm, Felix
* @author Vogel, Johannes
* @version 1.0, 06/20/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.184
*/

import java.util.Scanner;

public class Main {

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
StringBuffer output = new StringBuffer();
int cases = input.nextInt();

for (int i=1; i<=cases;i++) {
double temp = input.nextInt();
double increase = (input.nextInt())*(5.0/9);

output.append(String.format("Case %d: %.2f\n", i, (temp+increase)));
}
System.out.print(output);

}

}


3.

/**
> > > > * Angewandte Mathematik, SS11
> > > > * Problem: 11984 - A Change in Thermal unit
> > > > * Link:
> > > >
> > >
> >
> http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=84&page=show_problem&problem=3135
> > > >  * @author Brielbeck, Daniel
> > > > * @author Weber, Georg
> > > > * @version 1.0, 06/21/2011
> > > > * Method : Ad-Hoc
> > > > * Status : Accepted
> > > > * Runtime: 0.168
> > > > */
> > > > import java.io.BufferedReader;
> > > > import java.io.InputStreamReader;
> > > > import java.text.DecimalFormat;
> > > >
> > > > public class Main {
> > > >
> > > > public static void main(String[] args) throws Exception {
> > > > BufferedReader reader = new BufferedReader(new InputStreamReader(
> > > > System.in));
> > > > String input;
> > > > int count = Integer.parseInt(reader.readLine());
> > > >
> > > > for (int i = 0; i < count; i++) {
> > > > input = reader.readLine();
> > > > if (input.equals(null)) break;
> > > > String[] values = input.split(" ");
> > > > long t = Long.valueOf(values[0]);
> > > > long d = Long.valueOf(values[1]);
> > > > double temp = 0;
> > > > temp = ( t * (9.0/5.0)) + 32.0 ;
> > > > temp+=d;
> > > > temp=(5.0/9.0)*((double)temp-32.0);
> > > > DecimalFormat f = new DecimalFormat("0.00");
> > > > System.out.printf("Case "+(i+1)+": "+f.format(temp)+"\n");
> > > > }
> > > > }
> > > > }

4.

/**
 * Angewandte Mathematik, SS11
 * 11984 - A Change in Thermal Unit
 * http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3135
 *
 * @author Unverzart Michael
 * @author Wurth Manuel
 * @version 1.0, 21/06/2011
 *
 * Method : Ad-Hoc
 * Status : Accepted
 * Runtime: 0.140
 */

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(
                System.in));
        String inputLine;
        inputLine = reader.readLine();

        int testcases = new Integer(inputLine);
        for (int i = 1; i <= testcases; i++) {
            StringTokenizer st = new StringTokenizer(reader.readLine());
            double c = new Double(st.nextToken());
            double d = new Double(st.nextToken());
           
            c = c * 1.8f +32;
            double e = c + d;
           
            System.out.println("Case "+i+": " +String.format("%.2f",(e-32)/1.8f));
        }
    }
}
5.

/**
* Angewandte Mathematik, SS11
* Problem: 11984 - A Change in Thermal Unit
* Link: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=229&page=show_problem&problem=3135
*
* @author Markus Schöllner
* @author Andreas Maier
* @version 1.0, 06/26/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 0.164
*/

import java.text.DecimalFormat;
import java.util.*;


public class Main {


public static void main(String[] args) {

Scanner input = new Scanner(System.in);
DecimalFormat df = (DecimalFormat)DecimalFormat.getInstance(Locale.US);
df.applyPattern( "0.00" );
int T;
double C,d, D, result;
T = input.nextInt();
double five =5;
double nine = 9;
final double fiveNine = five/nine;

for(int c=1; c<=T;c++){
C = input.nextInt();
d = input.nextInt();
D = ((d)*(fiveNine));
result = C+D;
System.out.println("Case "+c+": "+df.format(result));
}
}
}

6.

package am.fahrenheit;

/**
* Angewandte Mathematik, SS11
* Problem: 11984 - A Change in Thermal Unit
* Link:
*
* @author Florian Stein
* @author Franz Sommer
* @version 1.0, 06/27/2011
*
* Method : Ad-Hoc
* Status : Accepted
* Runtime: 1.000
*/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {

public static void main(String[] args) throws NumberFormatException,
IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));

int loop = Integer.parseInt(reader.readLine());

for (int i = 1; i <= loop; i++) {
Scanner seperator = new java.util.Scanner(reader.readLine());
int C = seperator.nextInt();
int d = seperator.nextInt();
double F = 1.8 * C + 32 + d;

DecimalFormat df = new DecimalFormat("0.00");
String s = df.format((F - 32) * .55555556);

System.out.println("Case " + i + ": " + s);

}

}

}