This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:spring2019:unix:projects:pct0 [2019/04/01 14:04] – [Letter Division: an example] wedge | haas:spring2019:unix:projects:pct0 [2019/08/04 13:46] (current) – [Objective] wedge | ||
---|---|---|---|
Line 11: | Line 11: | ||
=====Objective===== | =====Objective===== | ||
- | To continue to cultivate your problem solving, critical thinking, analytical, and observation skills; to apply your skills on the UNIX command-line. | + | To continue to cultivate your problem solving, critical thinking, analytical, and observation skills. |
+ | The aim here is on observation, | ||
=====Background===== | =====Background===== | ||
- | The true nature of problem solving frequently involves critical thinking, analytical, and observation skills. Where problems are not solved by memorizing some pre-defined set of answers and regurgitating them mindlessly, but it crafting an elaborate solution from subtle cues and tested, experimental realizations. | + | The true nature of problem solving frequently involves critical thinking, analytical, and observation skills. Where problems are not solved by memorizing some pre-defined set of answers and regurgitating them mindlessly, but in crafting an elaborate solution from subtle cues and tested, experimental realizations. |
- | This project | + | This project puts you in contact with such endeavours. |
- | ====Letter | + | ====Long Division==== |
Letter division is a category of logic problem where you would take an ordinary math equation (in long form), and substitute all the numbers for letters, thereby in a direct sense masking the numeric values present that correctly enable the problem to work from start to completion. It is your task, through exploring, experimenting, | Letter division is a category of logic problem where you would take an ordinary math equation (in long form), and substitute all the numbers for letters, thereby in a direct sense masking the numeric values present that correctly enable the problem to work from start to completion. It is your task, through exploring, experimenting, | ||
Line 101: | Line 102: | ||
===== | ===== | ||
VKMK | VKMK | ||
+ | | ||
+ | letters: BGJKLMOPRV | ||
</ | </ | ||
Line 107: | Line 110: | ||
So, let us begin. | So, let us begin. | ||
- | One thing I like to do is set up a more visual representation | + | One aim is to obtain the key to the puzzle, the mapping |
- | < | + | | 0 | | |
+ | | 1 | | | ||
+ | | 2 | | | ||
+ | | 3 | | | ||
+ | | 4 | | | ||
+ | | 5 | | | ||
+ | | 6 | | | ||
+ | | 7 | | | ||
+ | | 8 | | | ||
+ | | 9 | | | ||
+ | Another thing I like to do is set up a more visual representation of what each letter COULD be. I do so in the following form: | ||
+ | |||
+ | < | ||
+ | B = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | G = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | J = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | K = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | L = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | O = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | V = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
</ | </ | ||
+ | |||
+ | Then, as I figure things out (either what certain are, but mostly, which ones they are NOT), I can mark it up accordingly. | ||
Right from the start, we can already make some important connections; | Right from the start, we can already make some important connections; | ||
Line 143: | Line 170: | ||
From what we've done so far, we do not know where V,G fall in respect to O,L,J,K. They might be less than, OR greater than. We won't know without further information. | From what we've done so far, we do not know where V,G fall in respect to O,L,J,K. They might be less than, OR greater than. We won't know without further information. | ||
- | =====Get started===== | ||
- | This week's project has 2 points of origin. | ||
- | First, in the **upf1/** sub-directory of the UNIX Public Directory, under a directory by the name of your username, you will find the following file: | + | Yet, even WITH this information, we can update our letter ranges: |
- | * **TASK** | + | * since V is less than G, we know V can NOT be 9. |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | * on the other side, K cannot be 0, 1, or 2 | ||
+ | * J cannot be 0 or 1 | ||
+ | * L cannot be 0. | ||
- | Copy this file into your project directory. | + | So, if we update our range chart accordingly: |
- | The **TASK** file will contain the particular units to start with and convert to. | + | < |
+ | B = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } | ||
+ | G = { 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | J = { 2, 3, 4, 5, 6, 7, 8, } | ||
+ | K = { 3, 4, 5, 6, 7, 8, 9 } | ||
+ | L = { 1, 2, 3, 4, 5, 6, 7, } | ||
+ | M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | O = { 0, 1, 2, 3, 4, 5, 6, } | ||
+ | P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | V = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | </ | ||
- | Next, you will want to grab the latest version | + | Moving on, dealing with details |
- | * https:// | + | * L is less than K (which we actually know to be 2 less than K), so L - K needs to BORROW |
+ | * J is less than K (which we know is 1 less than K), so J - K needs to BORROW | ||
+ | * V is apparently also less than K (which we didn't previously know), so V - K needs to BORROW | ||
+ | * now knowing than V << K, we can connect our other relational fragment in (I use the double '<<' | ||
- | You will want to use a tool like **wget(1)** or **curl(1)** to non-interactively download it onto your lab46 account, and similarly extract, compile, and install that (check its own README file). | + | So: V < G << O < L < J < K |
- | There may be multiple versions | + | This allows us some further whittling |
- | For example, say you have the following: | + | * V cannot be 9, 8, 7, 6, or 5 |
+ | * G cannot be 9, 8, 7, or 6 | ||
+ | * O cannot be 0, or 1 | ||
+ | * L cannot be 0, 1, or 2 | ||
+ | * J cannot be 0, 1, 2, or 3 | ||
+ | * K cannot be 0, 1, 2, 3, or 4 | ||
- | | + | < |
- | * unittools-20161024-14.tar.gz | + | B = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } |
- | * unittools-20170123-13.tar.gz | + | G = { 1, 2, 3, 4, 5, } |
- | * unittools-20170201-09.tar.gz | + | J = { 4, 5, 6, 7, 8, |
+ | K = { 5, 6, 7, 8, 9 } | ||
+ | L = { 3, 4, 5, 6, 7, } | ||
+ | M = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | O = { 2, 3, 4, 5, 6, } | ||
+ | P = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | R = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 } | ||
+ | V = { 0, 1, 2, 3, 4, } | ||
+ | </ | ||
- | From visual inspection, you would select the " | + | Already we can see that V and G are likely lower numbers, and O, L, J, and K are likely higher numbers. |
- | Note, however, that visual inspection alone is not good enough for your steps file. New versions may be released, and your steps file needs to obtain the most recent version available. To facilitate this task, the latest and greatest version of unittools will be listed in a file called LATEST (which you should see near the top of the directory index listing). You can make use of this file to assist you in automating the process of determining and downloading the latest version of the unittools tools. | + | What else do we have? Let's keep going: |
- | Once those two steps are complete, you can begin on the tasks listed in your **TASK** file. | + | We cannot instantly proceed to the next subtraction in as obvious a progression, as we'll need more information |
- | ====unittools suite==== | + | ===Finding K (and J and L and O as well)=== |
- | The unittools suite is a collection of command-line tools that perform various unit conversions you may find useful for this project. The tools include: | + | |
- | * **cm2in** - convert centimeters to inches | + | However, looking at the puzzle, I'm interested in seeing |
- | * **cu2mm** - convert cubits to millimeters | + | |
- | * **dm2cm** - convert decimeters to centimeters | + | |
- | * **Dm2mi** - convert Decameters to miles | + | |
- | * **ft2hm** - convert feet to hectometers | + | |
- | * **ft2yd** - convert feet to yards | + | |
- | * **hm2dm** - convert hectometers to decimeters | + | |
- | * **hm2Dm** - convert hectometers to Decameters (if not available, use **hm2dcm** instead) | + | |
- | * **in2cu** - convert inches to cubits | + | |
- | * **in2ft** - convert inches to feet | + | |
- | * **km2ft** - convert kilometers to feet | + | |
- | * **mi2km** - convert miles to kilometers | + | |
- | * **mi2yd** - convert miles to yards | + | |
- | * **mm2dm** - convert millimeters to decimeters | + | |
- | * **st2mi** - convert stadions to miles | + | |
- | * **yd2mi** - convert yards to miles | + | |
- | * **yd2st** - convert yards to stadions | + | |
- | The tools by default expect input via STDIN, and will output to STDOUT. | + | Why 9? Because of a borrow! |
- | These tools have command-line arguments which can alter their default behavior. You may want to review the options and defaults | + | ((5-1)+10)-5 = (4+10)-5 = 14 - 5 = 9 |
- | =====Process===== | + | ... that can be quite revealing too! |
- | In the **TASK** file, you will be given a set of source quantities/ | + | |
- | As an example, take the following (formatted is it would appear in your **TASK** file): | + | And it would appear |
< | < | ||
- | task: 0 | + | KVRMR |
- | precision: 3 | + | |
- | input_value: | + | ===== |
- | input_unit: cm | + | VKMK |
- | output_unit: | + | |
- | chain_delim: | + | |
</ | </ | ||
- | With these in mind, we can set about solving | + | Lookie there: R-R = K. |
+ | |||
+ | Usually, that would result | ||
+ | |||
+ | So, that means it is being borrowed from, and it itself has to borrow, so we now also know that M is less than K (M << K). | ||
+ | |||
+ | And, as indicated above: | ||
+ | |||
+ | ((R-1)+10)-R = 9! | ||
+ | |||
+ | We now know that K = 9! | ||
+ | |||
+ | That suddenly reveals a whole lot to us, due to our relational chains we've built. Let's update: | ||
+ | |||
+ | | 0 | | | ||
+ | | 1 | | | ||
+ | | 2 | | | ||
+ | | 3 | | | ||
+ | | 4 | | | ||
+ | | 5 | | | ||
+ | | 6 | O | | ||
+ | | 7 | L | | ||
+ | | 8 | J | | ||
+ | | 9 | K | | ||
+ | |||
+ | Also, with the new introduction of M being less than K: | ||
+ | |||
+ | < | ||
+ | B = { 0, 1, 2, 3, 4, 5, } | ||
+ | G = { 1, 2, 3, 4, 5, } | ||
+ | J = { | ||
+ | K = { 9 } | ||
+ | L = { 7 } | ||
+ | M = { 0, 1, 2, 3, 4, 5, } | ||
+ | O = { | ||
+ | P = { 0, 1, 2, 3, 4, 5, } | ||
+ | R = { 0, 1, 2, 3, 4, 5, } | ||
+ | V = { 0, 1, 2, 3, 4, } | ||
+ | </ | ||
+ | |||
+ | And, our relational chains: | ||
+ | |||
+ | * V < G << O < L < J < K | ||
+ | * M << O < L < J < K | ||
+ | |||
+ | Because we don't yet know any relation of M compared to V or G, we have to keep them separate for now. | ||
+ | |||
+ | We also have a second disqualifier for K being 0... the ones place subtraction in that bottom-most subtraction: | ||
+ | |||
+ | R - B = K. | ||
+ | |||
+ | There' | ||
+ | |||
+ | * R is greater than B | ||
+ | * R is less than B | ||
+ | |||
+ | Since we know that K is 9, there' | ||
+ | |||
+ | * R is less than B (R << B) | ||
+ | |||
+ | Currently both R and B can be 0-5 (although now, B is 1-5, and R is 0-4). We'd need to find a combination | ||
+ | ^ R: 0 ^ R: 1 ^ R: 2 ^ R: 3 ^ R: 4 | | ||
+ | | (0+10) | ||
+ | | 10 | 11 | 12 | 13 | 14 | | ||
+ | |||
+ | And from that, we're subtracting B, which is 1, 2, 3, 4, or 5. The answer has to be 9. | ||
+ | |||
+ | So: | ||
+ | |||
+ | 10-1=9, 11-2=9, 12-3=9, 13-4=9, and 14-5=9 | ||
+ | |||
+ | Hey, look at that... B is one greater than R (not just R << B, BUT: R < B) | ||
+ | |||
+ | Our relational chains: | ||
+ | |||
+ | * V < G << O < L < J < K | ||
+ | * M << O < L < J < K | ||
+ | * R < B << O < L < J < K | ||
+ | |||
+ | And our chart, of sorts: | ||
+ | |||
+ | < | ||
+ | B = { 1, 2, 3, 4, 5, } | ||
+ | G = { 1, 2, 3, 4, 5, } | ||
+ | J = { | ||
+ | K = { 9 } | ||
+ | L = { 7 } | ||
+ | M = { 0, 1, 2, 3, 4, 5, } | ||
+ | O = { | ||
+ | P = { 0, 1, 2, 3, 4, 5, } | ||
+ | R = { 0, 1, 2, 3, 4, } | ||
+ | V = { 0, 1, 2, 3, 4, } | ||
+ | </ | ||
+ | |||
+ | If you look, the only letter we've not yet directly interacted with yet is ' | ||
+ | |||
+ | Let's continue on: | ||
+ | |||
+ | M-K=M, BECAUSE we know M << K, AND BECAUSE we know the subtraction to the right is borrowing from it (because R < B), we have something like this: (M-1+10)-K=M | ||
+ | |||
+ | Can't really do much more with it at this point, but it is important to know to help us identify the borrows needing to happen. | ||
+ | |||
+ | ===Finding our zero value (R and B)=== | ||
+ | |||
+ | Why don't we go ahead and find 0? If you look in the subtraction above the bottom one, we have another " | ||
+ | |||
+ | < | ||
+ | JJGKL | ||
+ | | ||
+ | ===== | ||
+ | | ||
+ | </ | ||
+ | |||
+ | We KNOW that V << L, so no borrow is happening there. | ||
+ | |||
+ | Therefore, K-K, or 9-9, equals 0. So R is 0! | ||
+ | |||
+ | ... and B is 1! Because of our identified relationship. | ||
+ | |||
+ | Updating things! | ||
+ | |||
+ | | 0 | R | | ||
+ | | 1 | B | | ||
+ | | 2 | | | ||
+ | | 3 | | | ||
+ | | 4 | | | ||
+ | | 5 | | | ||
+ | | 6 | O | | ||
+ | | 7 | L | | ||
+ | | 8 | J | | ||
+ | | 9 | K | | ||
+ | |||
+ | Also, with the new introduction of M being less than K: | ||
+ | |||
+ | < | ||
+ | B = { 1 } | ||
+ | G = { 3, 4, 5, } | ||
+ | J = { | ||
+ | K = { 9 } | ||
+ | L = { 7 } | ||
+ | M = { 2, 3, 4, 5, } | ||
+ | O = { | ||
+ | P = { 2, 3, 4, 5, } | ||
+ | R = { 0 } | ||
+ | V = { 2, 3, 4, } | ||
+ | </ | ||
+ | |||
+ | *NOTE: G is NOT 2, because G is greater than V (one greater, in fact), so we can similarly whittle that off. | ||
+ | |||
+ | Relational chains can look as follows now: | ||
+ | |||
+ | * R < B << V < G << O < L < J < K | ||
+ | * R < B << M << O < L < J < K | ||
+ | * R < B << P << O < L < J < K | ||
+ | |||
+ | Basically just down to V, G, P, and M. | ||
+ | |||
+ | ===Finding V and G=== | ||
+ | |||
+ | And I think we have the means to find V: notice the second to last subtraction, | ||
+ | |||
+ | We KNOW the numeric values of K and J, in fact we know the values of L, K, and B. The only thing we don't know is ' | ||
+ | |||
+ | KJKK = 9899 | ||
+ | J = 8 | ||
+ | |||
+ | So: 9899 x 8 = 79192 = LKBKV! | ||
+ | |||
+ | V is 2! | ||
+ | |||
+ | Which means, because V < G, that G is 3! | ||
+ | |||
+ | Updating our records: | ||
+ | |||
+ | | 0 | R | | ||
+ | | 1 | B | | ||
+ | | 2 | V | | ||
+ | | 3 | G | | ||
+ | | 4 | | | ||
+ | | 5 | | | ||
+ | | 6 | O | | ||
+ | | 7 | L | | ||
+ | | 8 | J | | ||
+ | | 9 | K | | ||
+ | |||
+ | Also, with the new introduction of M being less than K: | ||
+ | |||
+ | < | ||
+ | B = { 1 } | ||
+ | G = { 3 } | ||
+ | J = { | ||
+ | K = { 9 } | ||
+ | L = { 7 } | ||
+ | M = { 4, 5, } | ||
+ | O = { | ||
+ | P = { 4, 5, } | ||
+ | R = { 0 } | ||
+ | V = { | ||
+ | </ | ||
+ | |||
+ | Relational chains can look as follows now: | ||
+ | |||
+ | * R < B < V < G << M << O < L < J < K | ||
+ | * R < B < V < G << P << O < L < J < K | ||
+ | |||
+ | ===Finding M and discovering P=== | ||
+ | |||
+ | And then there were 2. We really just need to find M, or P, and we're done. And since there are no ' | ||
+ | |||
+ | Hey, how about this: | ||
+ | |||
+ | < | ||
+ | JJGKL | ||
+ | | ||
+ | ===== | ||
+ | | ||
+ | </ | ||
+ | |||
+ | One's place subtraction: | ||
+ | |||
+ | We KNOW L (7) is greater than V (2), so no borrow is happening. | ||
+ | |||
+ | L-V=M | ||
+ | 7-2=5 | ||
+ | |||
+ | M is 5. That means P is 4 by process of elimination. | ||
+ | |||
+ | Puzzle completed: | ||
+ | |||
+ | | 0 | R | | ||
+ | | 1 | B | | ||
+ | | 2 | V | | ||
+ | | 3 | G | | ||
+ | | 4 | P | | ||
+ | | 5 | M | | ||
+ | | 6 | O | | ||
+ | | 7 | L | | ||
+ | | 8 | J | | ||
+ | | 9 | K | | ||
+ | |||
+ | Also, with the new introduction of M being less than K: | ||
+ | |||
+ | < | ||
+ | B = { 1 } | ||
+ | G = { 3 } | ||
+ | J = { | ||
+ | K = { 9 } | ||
+ | L = { 7 } | ||
+ | M = { 5 } | ||
+ | O = { | ||
+ | P = { | ||
+ | R = { 0 } | ||
+ | V = { | ||
+ | </ | ||
+ | |||
+ | Relational chains can look as follows now: | ||
+ | |||
+ | * R < B < V < G < P < M < O < L < J < K | ||
+ | |||
+ | I wasn't able to show it as well in text on the wiki, but I also made a point to mark up each subtraction to show whether a borrow occurred or not: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | To be sure, there are likely MANY, MANY ways to arrive at these conclusions. What is important is being observant, performing little experiments, | ||
+ | |||
+ | Your performance on this project will be directly tied to being able to document your process through | ||
+ | =====Getting started===== | ||
+ | |||
+ | In the **pct0/** sub-directory of the UNIX Public Directory, under a directory by the name of your username, you will find the following files: | ||
+ | |||
+ | * **bonus** | ||
+ | * **practice0** | ||
+ | * **practice1** | ||
+ | * **practice2** | ||
+ | * **practice3** | ||
+ | * **puzzle** | ||
+ | |||
+ | Copy these file into your project directory. | ||
+ | |||
+ | There is also a **MANIFEST** file in the parent directory (the **pct0/** sub-directory), | ||
+ | |||
+ | For this project, the only puzzle you HAVE to solve in order to be eligible for full credit will be the one contained in the **puzzle** file. | ||
+ | |||
+ | Should you desire, there' | ||
+ | |||
+ | As you gear up to work on the project-required puzzle (or additionally the bonus puzzle), I have provided a sampling of practice puzzles that you can try your hand on in order to get more experience working with these type of puzzles. Doing them will not net you any points, nor will not doing them diminish your totals for this project. I would recommend doing them, though, as the more exposure you have within this domain, the more patterns become identified, further facilitating your chances of success. | ||
+ | =====Process===== | ||
+ | Solve and document the puzzle. | ||
+ | |||
+ | On your own. | ||
+ | |||
+ | Seek to discover and explore and understand, NOT to just come up with an answer. | ||
+ | =====Your Solution===== | ||
+ | As this project focuses more on the critical thinking process than being heavy in unravelling a problem using UNIX commands, your solution will be in 2 parts: | ||
+ | |||
+ | * your puzzle key, in a textfile called ' | ||
+ | * your documentation of your solving and exploration of the puzzle. If you did this on paper, I'll want it digitized and submitted as a file with this project. The file, if is text form, should be called ' | ||
+ | |||
+ | ====puzzle key==== | ||
+ | As indicated, you are to place the determined key to your puzzle in a regular text file called ' | ||
+ | |||
+ | For example, using the example puzzle above: | ||
+ | |||
+ | | 0 | R | | ||
+ | | 1 | B | | ||
+ | | 2 | V | | ||
+ | | 3 | G | | ||
+ | | 4 | P | | ||
+ | | 5 | M | | ||
+ | | 6 | O | | ||
+ | | 7 | L | | ||
+ | | 8 | J | | ||
+ | | 9 | K | | ||
- | A potential solution would be as follows: | + | We'll want to put them, in order, in our key file: |
<cli> | <cli> | ||
- | lab46: | + | lab46: |
- | 13.78 in | + | lab46: |
- | lab46: | + | |
- | 1.15 ft | + | |
- | lab46: | + | |
</ | </ | ||
- | But that's not very optimized. We could instead do something better, | + | Want to know what a proper |
<cli> | <cli> | ||
- | lab46: | + | lab46: |
- | 35.000 cm >> 13.780 in >> 1.148 ft | + | RBVGPMOLJK |
- | lab46: | + | lab46: |
</ | </ | ||
- | Note that with **precision**, | + | JUST the letters (and a trailing newline). |
- | We'll want to record our command-lines in the appropriate place. Since this is task #0, we'll want to record it in a file called: **task0.cli**, | + | ====solution documentation==== |
+ | As stated, a very large part of this project's evaluation will be based on your clear and detailed documentation of how you determined each letter' | ||
- | For final output, we'll want to display | + | Just providing |
- | < | + | Your documentation should, while there may be supporting information, |
- | lab46: | + | |
- | 35.000cm >> 13.780in >> 1.148ft | + | |
- | lab46: | + | |
- | </ | + | |
- | Basically, each task#.cli will be its own script. If we were to execute it, the correct result should be produced. | + | You are free to write out your solution with pen on paper (that is how I usually do these puzzles); but if you do so, you MUST digitize it and submit it as an image file when you submit this project. |
- | =====upf1steps===== | + | The aim here is not to dump a bunch of data on me, but instead present me with connected and pertinent information that documents your process of progression through the puzzle from start to finish. |
- | You will once again be creating a steps file that can automate | + | =====Verification===== |
+ | Want to check to see if your key is correct | ||
- | As in previous projects, **upf1steps** will contain the steps you took from the point of copying the numbers suite and downloading | + | ====Generate MD5 sum==== |
- | * To clarify: YES, I want to see steps creating a project directory, copying and downloading files in question, extracting, compiling, installing, and then of course running each individual task#.cli script. | + | You can do so, by generating an MD5 sum of your ' |
- | There are some additional constraints you need to keep in mind: | + | < |
+ | lab46:~/ | ||
+ | 1395327d0826e3145b4f285a2b936707 | ||
+ | lab46: | ||
+ | </ | ||
- | * your script should not produce ANY STDERR output | + | Obviously, YOUR MD5 sum will be DIFFERENT from this, because this is the MD5 sum of the puzzle key explored at the top of this project page. |
- | * your script should ONLY produce STDOUT output in conformance with the below stated requirements. Any other output needs to be silenced. | + | |
- | * You will want one unified command-line producing the end result, not separate one-step transitions. The idea is to utilize pipes. | + | |
- | * semi-colons used to separate commands do not constitute one command-line, | + | |
- | * For each task, you'll want to display things as follows: | + | |
- | * "Task X conversion chain: CHAIN" | + | |
- | * where X is the task number (0, 1, 2, etc.) | + | |
- | * where CHAIN is the conversion chain output matching | + | |
- | * note that the task#.cli output appears on the SAME line as the "Task X conversion chain:" | + | |
- | * there is NO space between value and unit | + | |
- | For example, a sample output | + | NOTE: MD5 sums of your bonus and practice puzzles are also present in the MANIFEST file, so you can perform verifications on them in the same manner. |
+ | |||
+ | ====Look for matching MD5 sum in MANIFEST==== | ||
+ | Let's say the path to the **pct0/** sub-directory | ||
<cli> | <cli> | ||
- | lab46: | + | lab46: |
- | Task 0 conversion chain: 35.000cm >> 13.780in >> 1.148ft | + | MATCH FOUND |
- | ... | + | lab46: |
- | lab46: | + | |
</ | </ | ||
+ | If you have a match, congratulations, | ||
=====Submission===== | =====Submission===== | ||
- | By successfully performing this project, you should | + | By successfully performing this project, you should |
+ | |||
+ | * a ' | ||
+ | * a ' | ||
+ | |||
+ | Additionally, although optional, if you'd like to do similar for the bonus puzzle: | ||
+ | | ||
+ | * a 'bonus.solution' | ||
To submit this project to me using the **submit** tool, run the following command at your lab46 prompt: | To submit this project to me using the **submit** tool, run the following command at your lab46 prompt: | ||
<cli> | <cli> | ||
- | $ submit unix upf1 upf1steps task*.cli | + | $ submit unix pct0 puzzle.key puzzle.solution |
- | Submitting unix project "upf1": | + | Submitting unix project "pct0": |
- | -> upf1steps(OK) | + | -> puzzle.key(OK) |
- | -> task0.cli(OK) | + | -> puzzle.solution(OK) |
- | -> task1.cli(OK) | + | |
- | -> task2.cli(OK) | + | |
- | -> task3.cli(OK) | + | |
- | ... | + | |
SUCCESSFULLY SUBMITTED | SUCCESSFULLY SUBMITTED | ||
</ | </ | ||
- | You should get some sort of confirmation indicating successful submission | + | or, if submitting results for the bonus puzzle as well: |
+ | |||
+ | < | ||
+ | $ submit unix pct0 puzzle.key puzzle.solution bonus.key bonus.solution | ||
+ | Submitting unix project " | ||
+ | -> puzzle.key(OK) | ||
+ | -> puzzle.solution(OK) | ||
+ | -> bonus.key(OK) | ||
+ | -> bonus.solution(OK) | ||
+ | |||
+ | SUCCESSFULLY SUBMITTED | ||
+ | </ | ||
+ | |||
+ | You should get some sort of confirmation indicating successful submission if all went according to plan. If not, check for typos and or locational mismatches. | ||
I'll be looking for the following: | I'll be looking for the following: | ||
< | < | ||
- | 78:upf1:final tally of results (78/78) | + | 78:pct0:final tally of results (78/78) |
- | *:upf1:upf1steps has valid list of non-interactive instructions [4/4] | + | *:pct0:puzzle.key file submitted |
- | *: | + | *:pct0:puzzle.key file formatted according |
- | *: | + | *:pct0:puzzle.solution is organized and easy to read [35/35] |
- | *: | + | *:pct0:puzzle.solution |
- | *: | + | |
- | *: | + | |
- | *: | + | |
- | *:upf1:upf1steps makes clear, effective use of wildcards [4/4] | + | |
- | *: | + | |
- | *: | + | |
- | *:upf1:upf1steps uses a loop to drive numbers in final output [4/4] | + | |
- | *: | + | |
- | *:upf1:all files are organized, clear, | + | |
- | *:upf1:task#.cli files output using specified precision [3/3] | + | |
- | *: | + | |
- | *: | + | |
- | *: | + | |
- | *: | + | |
- | *: | + | |
- | *: | + | |
</ | </ | ||
- | |||
- | Additionally: | ||
- | * 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 |