Write a program called alphamirror that takes a string as argument and displays this string
Écrire un programme nommé `alphamirror` qui prend une `string` come argument et qui affiche cette `string` après remplacement de chaque charactère alphabétique avec son opposé.
after replacing each alphabetical character with the opposite alphabetical
character.
The case of the letter stays the same, for example :
Les majuscules restent des majuscules, de même pour le minuscules, par exemple :
'a' becomes 'z', 'Z' becomes 'A'
'a' devient 'z', 'Z' devient 'A'
'd' becomes 'w', 'M' becomes 'N'
'd' devient 'w', 'M' devient 'N'
The final result will be followed by a newline.
Le résultat final sera suivi d'un newline(`'\n'`).
If the number of arguments is not 1, the program will display only a newline.
Si le nombre d'arguments n'est pas 1, le programme affiche seulement un newline(`'\n'`).
Write a program that takes two strings and displays, without doubles, the characters that appear in both strings, in the order they appear in the first one.
Write a program that takes two `strings` and displays, without doubles, the characters that appear in both `strings`, in the order they appear in the first one.
- The display will be followed by a `\n`.
- The display will be followed by a newline(`'\n'`).
- If the number of arguments is not 2, the program displays `\n`.
- If the number of arguments is not 2, the program displays a newline(`'\n'`).
Write a program that takes two strings and displays, without doubles, the characters that appear in both strings, in the order they appear in the first one.
Écrire un programme qui prend deux `strings` et qui affiche, sans doublons, les caractères qui apparaissent dans les deux `strings`, dans l'ordre dans lequel ils apparaissent dans la première.
- The display will be followed by a `\n`.
- L'affichage sera suivi d'un newline(`'\n'`).
- If the number of arguments is not 2, the program displays `\n`.
- Si le nombre d'arguments n'est pas 2, le programme affiche un newline(`'\n'`).
Write a program called repeat_alpha that takes a string and display it
Écrire un programme `repeat_alpha` qui prend une `string` et qui affiche la répétition de chaque charactère de l'alpabet autant de fois que l'index de cette lettre.
repeating each alphabetical character as many times as its alphabetical index,
Write a program that takes a string and displays it, replacing each of its
Écrire un programme qui prend une `string` et qui l'affiche, en remplaçant chacune de ses lettres par la lettre 13 positions après dans l'ordre alphabétique.
letters by the letter 13 spaces ahead in alphabetical order.
- 'z' becomes 'm' and 'Z' becomes 'M'. Case remains unaffected.
- 'z' devient 'm' et 'Z' devient 'M'. Les majuscules restent des majuscules, de même pour les minuscules.
- The output will be followed by a newline.
- l'output sera suivi d'un newline(`'\n'`).
- If the number of arguments is not 1, the program displays a newline.
- Si le nombre d'arguments n'est pas 1, le programme affiche un newline(`'\n'`).
Write a program that takes 3 arguments, the first arguments is a string in which to replace a letter (2nd argument) by another one (3rd argument).
Write a program that takes 3 arguments, the first argument is a `string` in which to replace a letter (the 2nd argument) by another one (the 3rd argument).
- If the number of arguments is not 3, just display a newline.
- If the number of arguments is not 3, the program displays a newline(`'\n'`).
- If the second argument is not contained in the first one (the string) then the program simply rewrites the string followed by a newline.
- If the second argument is not contained in the first one (the string) then the program rewrites the `string` followed by a newline(`'\n'`).
Write a program that takes 3 arguments, the first arguments is a string in which to replace a letter (2nd argument) by another one (3rd argument).
Écrire un programme qui prends 3 arguments, le premier argument est une `string` dans laquelle une lettre (le 2éme argument) est remplacée par une autre (3éme argument).
- If the number of arguments is not 3, just display a newline.
- Si le nombre d'aruments n'est pas 3, le programme affiche un newline(`'\n'`).
- If the second argument is not contained in the first one (the string) then the program simply rewrites the string followed by a newline.
- Si le second argument n'est pas contenu dans le premier (la `string`) alors le programme réécris la `string` suivi d'un newline(`'\n'`).