/* This is a "fill-in-the-blank" format for a basic Java program. Notice * that the 3 parts of the code inside the main() function are for input, * calculations and output. In a real program, you would replace this * introductory comment with a description of your program. */ import java.io.*; // Tell compiler this program will feature I/O. public class BasicProgram // Change name of class to match file name { public static void main(String [] args) throws IOException { // Step 1 -- Input: I've included the necessary declarations for // the input "buffered reader" object, which means we will be reading // lines of input from the keyboard. But you need to read the data // yourself using kbd.readLine() and an appropriate parsing function. BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); // Step 2 -- Calcuations. Insert statements that perform the // essential calculations the program is supposed to do. // Step 3 -- Output. Write answer to the screen. Usually we'll // do this with: System.out.println( whatever-you-need-to-print ) } }