Browse Source

review of raid3 subjects

pull/175/head
Christopher Fremond 6 years ago committed by Christopher Fremond
parent
commit
29a570c685
  1. 22
      subjects/raid3.en.md
  2. 22
      subjects/raid3.fr.md

22
subjects/raid3.en.md

@ -2,28 +2,22 @@
### Instructions
Creare a program that takes a string as argument and displays the name of the raid in question, as well as its dimensions.
This raid is based on the `raid1` functions.
- Executable name : `raid3`.
Create a program `raid3` that takes a `string` as an argument and displays the name of the matching `raid1` and its dimensions.
- If the argument isn't a raid should print `Not a Raid function`.
- If the argument is not a `raid1` the program should print `Not a Raid function`.
Example of this output :
- All answers must end with a newline('`\n`').
- If there is more than one `raid1` matches, the program must display them all alphabetically ordered and separated by a `|`.
### Usage
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ echo HELLO | ./raid3
Not a Raid function
student@ubuntu:~/student/test$
```
- Whatever the answer, your line must be ended by a `\n`.
- If there is more than one raid1, you must display them all alphabetically.
Examples of output :
```console
student@ubuntu:~/student/test$ ./raid1a 4 4
o--o
| |

22
subjects/raid3.fr.md

@ -2,28 +2,22 @@
### Instructions
Creare a program that takes a string as argument and displays the name of the raid in question, as well as its dimensions.
Ce raid est basé sur les fonctions du `raid1`.
- Executable name : `raid3`.
Créer un programme `raid3` qui prend une `string` comme argument et qui affiche le nom du `raid1` correspondant et ses dimensions.
- If the argument isn't a raid should print `Not a Raid function`.
- Si l'argument n'est pas un des `raid1` le programme affiche `Not a Raid function`.
Example of this output :
- Toutes les réponses doivent se terminer avec un newline('`\n`').
- Si il y a plus d'un `raid1` correspondant, le programme doit les afficher tous en ordre alphabétique et séparé par un `|`.
### Utilisation
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ echo HELLO | ./raid3
Not a Raid function
student@ubuntu:~/student/test$
```
- Whatever the answer, your line must be ended by a `\n`.
- If there is more than one raid1, you must display them all alphabetically.
Examples of output :
```console
student@ubuntu:~/student/test$ ./raid1a 4 4
o--o
| |

Loading…
Cancel
Save