This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:spring2022:unix:projects:mtf0 [2022/03/15 12:51] – [Script] wedge | haas:spring2022:unix:projects:mtf0 [2022/03/15 18:09] (current) – [sample outputs] wedge | ||
---|---|---|---|
Line 15: | Line 15: | ||
<cli> | <cli> | ||
- | | + | (10) |
| | ||
1 | 1 2 3 4 5 6 7 8 9 | 1 | 1 2 3 4 5 6 7 8 9 | ||
Line 51: | Line 51: | ||
* the operation symbol represented in the top left of the table (in our case, an ' | * the operation symbol represented in the top left of the table (in our case, an ' | ||
* all values aligned, allowing for the padding of a single space for the largest value represented | * all values aligned, allowing for the padding of a single space for the largest value represented | ||
+ | * in the upper-left corner, in parentheses, | ||
Additionally, | Additionally, | ||
Line 94: | Line 95: | ||
</ | </ | ||
- | Your script will then occur between the shabang and this final exit command. | + | Your script will then occur between the shabang and this final exit command. Scripts lacking these two bounding elements will not be considered complete and will be subject to credit lost during evaluation. |
====for loops==== | ====for loops==== | ||
Line 139: | Line 140: | ||
The **printf** tool is an especially powerful output formatter. | The **printf** tool is an especially powerful output formatter. | ||
+ | =====sample outputs===== | ||
+ | For checking purposes, here are some sample outputs of what your script should be able to generated, given various command-line arguments: | ||
+ | |||
+ | Standard base 11 table: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | (11) 1 2 3 4 5 6 7 8 9 A | ||
+ | | ||
+ | 1 | 1 2 3 4 5 6 7 8 9 A | ||
+ | 2 | 2 4 6 8 A 11 13 15 17 19 | ||
+ | 3 | 3 6 9 11 14 17 1A 22 25 28 | ||
+ | 4 | 4 8 11 15 19 22 26 2A 33 37 | ||
+ | 5 | 5 A 14 19 23 28 32 37 41 46 | ||
+ | 6 | 6 11 17 22 28 33 39 44 4A 55 | ||
+ | 7 | 7 13 1A 26 32 39 45 51 58 64 | ||
+ | 8 | 8 15 22 2A 37 44 51 59 66 73 | ||
+ | 9 | 9 17 25 33 41 4A 58 66 74 82 | ||
+ | A | A 19 28 37 46 55 64 73 82 91 | ||
+ | </ | ||
+ | |||
+ | Subset of base 9: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | ( 9) 2 3 4 5 | ||
+ | | ||
+ | 2 | 4 6 8 11 | ||
+ | 3 | 6 10 13 16 | ||
+ | 4 | 8 13 17 22 | ||
+ | 5 | 11 16 22 27 | ||
+ | </ | ||
+ | |||
+ | Base 15: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | (15) 0 | ||
+ | x------------------------------------------------------------------------ | ||
+ | 0 | | ||
+ | 1 | | ||
+ | 2 | | ||
+ | 3 | | ||
+ | 4 | | ||
+ | 5 | | ||
+ | 6 | | ||
+ | 7 | | ||
+ | 8 | | ||
+ | 9 | | ||
+ | A | | ||
+ | B | | ||
+ | C | | ||
+ | D | | ||
+ | E | | ||
+ | 10 | | ||
+ | 11 | | ||
+ | 12 | | ||
+ | </ | ||
=====Submission===== | =====Submission===== | ||
To successfully complete this project, the following criteria must be met: | To successfully complete this project, the following criteria must be met: | ||
Line 189: | Line 248: | ||
*: | *: | ||
*: | *: | ||
- | *:mtf0:runtime | + | *: |
</ | </ | ||
Additionally: | Additionally: | ||
- | * Solutions not abiding by **SPIRIT** of project will be subject to a 25% overall deduction | + | * Solutions not abiding by **SPIRIT** of project will be subject to a 50% overall deduction |
* Solutions not utilizing descriptive why and how **COMMENTS** will be subject to a 25% overall deduction | * Solutions not utilizing descriptive why and how **COMMENTS** will be subject to a 25% overall deduction | ||
* Solutions not utilizing **INDENTATION** to promote scope and clarity will be subject to a 25% overall deduction | * Solutions not utilizing **INDENTATION** to promote scope and clarity will be subject to a 25% overall deduction | ||
* Solutions lacking **ORGANIZATION** ior are not easy to read (within 90 char width) are subject to a 25% overall deduction | * Solutions lacking **ORGANIZATION** ior are not easy to read (within 90 char width) are subject to a 25% overall deduction |