//******************************************************************** // // Class Name: Countdown.java // Program goal: A Rocket Countdown // // Author Name: Prof. John Lewis // Email: john.lewis@villanova.edu // URL: http://duke.csc.villanova.edu/jss/ // // History: // 1/2000 Lewis and Loftus: original program // 5/2000 Hitchner: added some documentation // 1/2001 Scheftic: modified documentation per current CSC101 template // //******************************************************************** // // Program Description and Design Overview: // Prints 2 lines of output representing a rocket countdown. // // Input Requirements: // None. // // Output Requirements: // First line: Three... Two... One... Zero... Liftoff! // Second line: Houston, we have a problem. // // Variables Used: // none // // Included Methods: // main // // Imported Methods: // java.lang: // System.out.print // System.out.println // // Program Assumptions: // none // // Pending Problems: // none // //******************************************************************** public class Countdown { //----------------------------------------------------------------- // Prints two lines of output representing a rocket countdown. //----------------------------------------------------------------- public static void main (String[] args) { System.out.print ("Three... "); System.out.print ("Two... "); System.out.print ("One... "); System.out.print ("Zero... "); System.out.println ("Liftoff!"); // appears on first output line System.out.println ("Houston, we have a problem."); } //end main } // end class Countdown