Current Status

Book

Program Phases, A Programming Language and API Translator allows programmers to learn new programming languages by providing simple indexed example programs. Each program illustrates useful, common, and well defined functionality.

Program Phase Task 1
Console Based Hello World! with Strings
 
Programming Features:
  • Console Application
  • Integer and String Variables
  • Command Line Parameter Parsing
  • Case/Switch Statement
  • String Concatenation
  • Console Output to Standard Output
Description:
  • Program Phase Task 1 is slightly more advanced than a traditional Hello World! console program. Two lines of output are generated each time a Program Phase that implements Program Phase Task 1 is executed. The first line of output is dependent on the number of command line parameters entered by the user at runtime. The second line of output is the text string "Hello World!".
Sample execution of Program Phase 1-3 with no parameters:



Sample execution of Program Phase 1-3 with a single parameter:



  • If the user attempts to enter more than one command line parameter, the program outputs an error.
Sample execution of Program Phase 1-3 with two command line parameters specified:



See Also
  Program Phase List
  Program Phase Task 2 - Application Name Console Output
  Program Phase Task 3 - GUI Based Program with Custom Class Def. and Instantiation
  Program Phase Task 4 - GUI Based Program with Main Window