You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
xpetit 32eddefd09
Remove template variable [[ROOT]] from subjects and fix subjects
4 years ago
..
README.md Remove template variable [[ROOT]] from subjects and fix subjects 4 years ago

README.md

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 :

student@ubuntu:~/rotatevowels/test$ go build
student@ubuntu:~/rotatevowels/test$ ./rotatevowels "Hello World" | cat -e
Hollo Werld$
student@ubuntu:~/rotatevowels/test$ ./rotatevowels "HEllO World" "problem solved"
Hello Werld problom sOlvEd
student@ubuntu:~/rotatevowels/test$ ./rotatevowels "str" "shh" "psst"
str shh psst
student@ubuntu:~/rotatevowels/test$ ./rotatevowels "happy thoughts" "good luck"
huppy thooghts guod lack
student@ubuntu:~/rotatevowels/test$ ./rotatevowels "aEi" "Ou"
uOi Ea
student@ubuntu:~/rotatevowels/test$ ./rotatevowels

student@ubuntu:~/rotatevowels/test$