import java.util.Scanner; /* TemperaturesI0.java ** Java application that is the first (0-th increment) in a series of ** programs that culminates in one that displays a table in which each ** row shows a Celsius temperature value and its equivalent in several ** other temperature scales. ** This program prompts the user to enter a Celsius temperature value ** and simply echoes it. ** ** Authors: P.M. Jackowitz and R. McCloskey ** Date: Sept. 2019 */ public class TemperaturesI0 { static Scanner keyboard = new Scanner(System.in); static double celsius; // input variable static double fahrenheit, kelvin, rankine; // output variables static double delisle, newton, reaumur, romer; // output variables public static void main(String[] args) { // Displays an introductory message. System.out.println("This is the TemperaturesI0 program."); // Prompts the user to enter a numeric value and then reads the response // into the input variable. System.out.print("Enter a Celsius value >:"); celsius = keyboard.nextDouble(); // Displays the input value and a double vertical bar. System.out.print(celsius + " ||"); System.out.println(); } }