Untitled

                Never    
Java
       
import java.util.Scanner;

public class TempConversions 
{
private static int temperature, fahrenheit;
private static Scanner sc;


public TempConversions () 
{
fahrenheit = 0, temperature = 0;

}

public static void main(String[] args) 
{
    MayenHeading.getHeading("Assignment 4 ");

    System.out.printf("  Temperature Converter\n");
    sc = new Scanner(System.in);

    System.out.printf("\n  Enter temperature to convert -->   ");
    temperature = sc.nextInt();

    fahrenheit = ((temperature - 32)*5)/9;
    System.out.printf("  The temperature is " + fahrenheit + " degrees                           fahrenheit");

    System.out.print("\n  Continue? (y/n): ");
    String choice = sc.next();

    {   
    System.out.printf("\n  Program completed.");
    MayenDate.printfDate();
    MayenDate.printfTime();
    }

}

Raw Text