The introduction to the design of the solution should allow you to use decomposition, abstraction and pattern identification skills in deciding what needs to be done in the task.
1. Start with the title 'Designing the Solution' and write a short introduction of what you have been asked to do; what you have abstracted and decomposed from the task.
Remember that good algorithm design should break problems down into sub-problems so procedures can be designed separately
This is an example of text for a Cow and Bull game: -
Remember that whilst you work on the task you can keep editing this introduction. Here are some other opening paragraphs from the 2020 NEA:
ASCII art is a technique that uses multiple lines of the 95 printable characters that are defined ASCII code stands for American standard code for information interchange. by the ASCII character set to create a graphical image.
Run length encoding (RLE) is an easy method of compressing data that specifies the number of consecutive occurrences of a data item followed by the value of the data item.
I am going to be creating a program that can compress and decompress ASCII art using RLE.
Another example
What is ASCII art and RLE?
ASCII art is a technique that uses multiple lines consisting of the 95 printable characters defined by the ASCII character set to create a graphical image. This is the example of ASCII art we were given by AQA:
Run Length Encoding (RLE) is a compression method that specifies the number of consecutive occurrences of data item followed by the value of the data item. For example:
Uncompressed data: aad888888
Compressed: 02a01d068
2. Start a table to show the variables you are going to use in your solution. For example:
|
VARIABLE NAMES: |
MEANINGS: |
|
a |
number of lines of compressed data. |
|
RLE |
RLE compressed data. |
|
Textfile |
name of file containing ASCII art. |
|
Textfile2 |
name of file containing RLE compressed data. |
|
compression |
Decompressed data |
|
Textfile3 |
Name of file containing ASCII art. |
|
file |
Open textfile3 and read the contents of the file. |
|
b |
Have all the lines been entered (Yes/No) |
|
int |
integer (character set) |
|
|
|
3. Create flowcharts which show start to design the algorithm. You should create separate flowcharts for each separate procedure. You should also include some pseudocode. These can be hand drawn and scanned in.
4. Create Test plans to show how you will test firstly each section of the task and then the whole system once it it is all finished.
Test plans need to include the following pieces of information
It is best displayed as a table, for example: