From 8699f21ce46be17f2c8f6c0c680492b3dfd3622b Mon Sep 17 00:00:00 2001 From: lee Date: Tue, 18 Jun 2019 17:51:22 +0100 Subject: [PATCH] fixed the comcheck readme but need to translate to fr --- subjects/comcheck.en.md | 49 +++++++++-------------------------------- subjects/comcheck.fr.md | 10 +++++---- 2 files changed, 16 insertions(+), 43 deletions(-) diff --git a/subjects/comcheck.en.md b/subjects/comcheck.en.md index e76f2314..c0649905 100644 --- a/subjects/comcheck.en.md +++ b/subjects/comcheck.en.md @@ -1,47 +1,18 @@ -## ROT 14 +## comcheck ### Instructions -Write a function `rot14` that returns the string within the parameter but transformed into a rot14 string. +Write a program `comcheck` that displays on the standard output `Alert!!!` followed by `\n`. -- If you not certain what we are talking about, there is a rot13 already. +- If one of the arguments passed in parameter corresponds to the words `01`, `galaxy`, `galaxy 01`. -### Expected function - -```go -func rot14(str string) string { - -} -``` - -### Usage - -Here is a possible [program](TODO-LINK) to test your function : - -```go -package main - -import ( - "github.com/01-edu/z01" -) - -func main() { - result := rot14("Hello How are You") - arrayRune := []rune(result) - - for _, s := range arrayRune { - z01.PrintRune(s) - } - z01.PrintRune('\n') -} - -``` - -And its output : +Examples of outputs : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test -Vszzc Vck ofs Mci -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine/comcheck$ go build +student@ubuntu:~/piscine/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +Alert!!! +student@ubuntu:~/piscine/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +Alert!!! +student@ubuntu:~/piscine/comcheck$ ``` diff --git a/subjects/comcheck.fr.md b/subjects/comcheck.fr.md index e76f2314..cbd69d91 100644 --- a/subjects/comcheck.fr.md +++ b/subjects/comcheck.fr.md @@ -40,8 +40,10 @@ func main() { And its output : ```console -student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test -Vszzc Vck ofs Mci -student@ubuntu:~/piscine/test$ +student@ubuntu:~/piscine/comcheck$ go build +student@ubuntu:~/piscine/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +Alert!!! +student@ubuntu:~/piscine/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +Alert!!! +student@ubuntu:~/piscine/comcheck$ ```