Browse Source

fixed the comcheck readme but need to translate to fr

pull/193/head
lee 6 years ago committed by Christopher Fremond
parent
commit
8699f21ce4
  1. 49
      subjects/comcheck.en.md
  2. 10
      subjects/comcheck.fr.md

49
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$
```

10
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$
```

Loading…
Cancel
Save