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.

Coda-Slider 1.1.1

Program Phase Task 1 Hello World! with Strings

About

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!".

Programming Features:

  • Console Application
  • Integer and String Variables
  • Command Line Parameter Parsing
  • Case/Switch Statement
  • String Concatenation
  • Console Output to Standard Output

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: