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.
Program Phase Task 1 Hello World! with Strings:
About | Implementations











