11.1 2017 and 2019
Instructions
This is an open universe test.
This, however, does not mean you can copy and paste from any person or any source.
You can discuss and share your ideas to help each other. However, in the end, you need to submit Python code that is yours.
Please insert comments to give a clear idea as to what you are doing.
- I.e. what you are trying to do.
- Also, why you do it.
For the purpose of this test:
- Simple solutions are preferred over more complicated ones.
- Readable code is preferred over efficient code.
Grading Criteria
The following scheme will be used to grade your solution.
Component Weight(%) Comment Starting strategy 15 This is your plan, before you start. Implementation (In Python) 25 Implemented strategy 15 This is the strategy you actually implemented. Simplicity of strategy 10 Readability 10 Comments 15 Correct Syntax 10 Bonus 5 For an overall simple, readable, exceptional solution.
1. Outline your strategy.
- Use a
docstring
or Markdown to briefly outline your strategy before you start coding. This component is worth 15% of this test. - You do not have to stick to this strategy during implementation. Your approach can (and perhaps should) change as you attempt to find a solution.
2. The Task
Download the zip file
data-for-the-test.zip
This contains many
.txt
files named in the formatrandom-integer_name-of-person_four-digit-index.txt
(e.g.00374_CHAMMIKA-UDALAGAMA_0042.txt
)There is a set of files for each one of you.
Read all the files under your name and reconstruct the message.
Note:
- The
index
always starts at zero. - The
random-integer
is a random number. (dah!) - Different individuals will have a different number of files.
- Each file contains a portion of a quote from the Hitchhiker’s Guide to the Galaxy.
- The