From 5e22f3f36a755df1a8844b6085bb2dc34d1b14dc Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Wed, 23 Oct 2019 01:53:11 +0100 Subject: [PATCH] adding of rotatevowels en and fr placeholder --- subjects/rotatevowels.en.md | 16 +++++++++------- subjects/rotatevowels.fr.md | 28 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 subjects/rotatevowels.fr.md diff --git a/subjects/rotatevowels.en.md b/subjects/rotatevowels.en.md index 757e225a1..d66298b26 100644 --- a/subjects/rotatevowels.en.md +++ b/subjects/rotatevowels.en.md @@ -4,22 +4,24 @@ Write a **program** that checks the arguments for vowels. -- If the argument contains vowels you have to reverse the order of the vowels in the argument. -- If the number of arguments are less than 1, the program display a new line, `\n`. -- If the arguments doesn't have any vowels, the program just print the arguments. +- If the argument contains vowels (for this exercise `y` is not considered a vowel) the program has to **"mirror"** the position of the vowels in the argument (see the examples). +- If the number of arguments is less than 1, the program display a new line ("`\n`"). +- If the arguments does not have any vowels, the program just prints the arguments. Example of output : ```console student@ubuntu:~/piscine-go/test$ go build -student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" -Hollo Werld -student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" "problem solved" -Hello Werld problom solved +student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" | cat -e +Hollo Werld$ +student@ubuntu:~/piscine-go/test$ ./rotatevowels "HEllO World" "problem solved" +Hello Werld problom sOlvEd student@ubuntu:~/piscine-go/test$ ./rotatevowels "str" "shh" "psst" str shh psst student@ubuntu:~/piscine-go/test$ ./rotatevowels "happy thoughts" "good luck" huppy thooghts guod lack +student@ubuntu:~/piscine-go/test$ ./rotatevowels "aEi" "Ou" +uOi Ea student@ubuntu:~/piscine-go/test$ ./rotatevowels student@ubuntu:~/piscine-go/test$ diff --git a/subjects/rotatevowels.fr.md b/subjects/rotatevowels.fr.md new file mode 100644 index 000000000..d66298b26 --- /dev/null +++ b/subjects/rotatevowels.fr.md @@ -0,0 +1,28 @@ +## rotatevowels + +### Instructions + +Write a **program** that checks the arguments for vowels. + +- If the argument contains vowels (for this exercise `y` is not considered a vowel) the program has to **"mirror"** the position of the vowels in the argument (see the examples). +- If the number of arguments is less than 1, the program display a new line ("`\n`"). +- If the arguments does not have any vowels, the program just prints the arguments. + +Example of output : + +```console +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" | cat -e +Hollo Werld$ +student@ubuntu:~/piscine-go/test$ ./rotatevowels "HEllO World" "problem solved" +Hello Werld problom sOlvEd +student@ubuntu:~/piscine-go/test$ ./rotatevowels "str" "shh" "psst" +str shh psst +student@ubuntu:~/piscine-go/test$ ./rotatevowels "happy thoughts" "good luck" +huppy thooghts guod lack +student@ubuntu:~/piscine-go/test$ ./rotatevowels "aEi" "Ou" +uOi Ea +student@ubuntu:~/piscine-go/test$ ./rotatevowels + +student@ubuntu:~/piscine-go/test$ +```