Perl - Part 6
[home] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
Programming Component Continued: Task 001
To practice your skills with the commands used so far, see can you create a program called square.pl that generates the following output when you run it:
There is no specification given in this case, just guideline output which you should mimic. Normally a program has a specification with which you must comply.
Task 002
This is a sample specification for a programming task. Carry this out and ensure you comply with the task instructions. Specification:- Create a program that displays a Star of David on screen. The Star of David is the symbol on the Israeli flag and consists of two equilateral triangles intersecting. One is 'right way up', the other is 'upside down'.
- The right way up triangle should be composed of + symbols, and the upside down triangle should consist of = symbols. Where (or if) the + and = symbols intersect a # symbol should be used.
- The Star can be of any size but should be symmetrical within the limitations of the screen display.
- The Star should be preceeded by your name displayed on-screen and two clear blank lines. It should be followed by two clear blank lines before the command prompt re-appears.
- The file should be called star.pl

The next task will test your use of both input and output......
[home] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
Last updated: 20131015-16:45