Browse Source

corrections and translations

pull/167/head
Christopher Fremond 6 years ago committed by Christopher Fremond
parent
commit
d5e6a8955d
  1. 6
      subjects/countdown.en.md
  2. 13
      subjects/displaya.en.md
  3. 14
      subjects/displayalpham.fr.md
  4. 8
      subjects/displayalrevm.en.md
  5. 15
      subjects/displayz.en.md
  6. 6
      subjects/hello.en.md
  7. 2
      subjects/onlya.en.md
  8. 4
      subjects/onlyz.en.md

6
subjects/countdown.en.md

@ -3,11 +3,9 @@
### Instructions ### Instructions
Write a program that displays all digits in descending order, followed by a Write a program that displays all digits in descending order, followed by a
newline. newline(`'\n'`).
### Expected main and function for the program ### Usage
### Expected output
```console ```console
student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ go build

13
subjects/displaya.en.md

@ -2,14 +2,12 @@
### Instructions ### Instructions
Write a program that takes a string, and displays the first 'a' character it Write a program that takes a `string`, and displays the first `a` character it
encounters in it, followed by a newline. If there are no 'a' characters in the encounters in it, followed by a newline(`'\n'`). If there are no `a` characters in the
string, the program just writes a newline. If the number of parameters is not string, the program just writes `a` followed by a newline(`'\n'`). If the number of parameters is not
1, the program displays 'a' followed by a newline. 1, the program displays an `a` followed by a newline(`'\n'`).
### Expected main and function for the program ### Usage
### Expected output
```console ```console
student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ go build
@ -18,5 +16,6 @@ a
student@ubuntu:~/piscine/test$ ./test "bcvbvA" student@ubuntu:~/piscine/test$ ./test "bcvbvA"
a a
student@ubuntu:~/piscine/test$ ./test "nbv" student@ubuntu:~/piscine/test$ ./test "nbv"
a
student@ubuntu:~/piscine/test$ student@ubuntu:~/piscine/test$
``` ```

14
subjects/displayalpham.fr.md

@ -0,0 +1,14 @@
## displayalpham
### Instructions
Écrire un programme qui affiche l'alphabet, avec les lettres paires en majuscule, et les lettres impaires en minuscule, suivi d'un newline(`'\n'`).
### Utilisation
```console
student@ubuntu:~/student/displayalpham$ go build
student@ubuntu:~/student/displayalpham$ ./displayalpham | cat -e
aBcDeFgHiJkLmNoPqRsTuVwXyZ$
student@ubuntu:~/student/displayalpham$
```

8
subjects/displayalrevm.en.md

@ -3,15 +3,13 @@
### Instructions ### Instructions
Write a program that displays the alphabet in reverse, with even letters in Write a program that displays the alphabet in reverse, with even letters in
uppercase, and odd letters in lowercase, followed by a newline. uppercase, and odd letters in lowercase, followed by a newline(`'\n'`).
The function must have the next signature. ### Usage
Example :
```console ```console
student@ubuntu:~/student/displayalrevm$ go build student@ubuntu:~/student/displayalrevm$ go build
student@ubuntu:~/student/displayalrevm$ ./displayalrevm | cat -e student@ubuntu:~/student/displayalrevm$ ./displayalrevm | cat -e
aBcDeFgHiJkLmNoPqRsTuVwXyZ$ zYxWvUtSrQpOnMlKjIhGfEdCbA$
student@ubuntu:~/student/displayalrevm$ student@ubuntu:~/student/displayalrevm$
``` ```

15
subjects/displayz.en.md

@ -2,21 +2,20 @@
### Instructions ### Instructions
Write a program that takes a string, and displays the first 'a' character it Write a program that takes a `string`, and displays the first `z` character it
encounters in it, followed by a newline. If there are no 'a' characters in the encounters in it, followed by a newline(`'\n'`). If there are no `z` characters in the
string, the program just writes a newline. If the number of parameters is not string, the program just writes `z` followed by a newline(`'\n'`). If the number of parameters is not
1, the program displays 'a' followed by a newline. 1, the program displays an `z` followed by a newline(`'\n'`).
### Expected output ### Usage
```console ```console
student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test "abc" student@ubuntu:~/piscine/test$ ./test "xyz"
z z
student@ubuntu:~/piscine/test$ ./test "bcvbvZ" student@ubuntu:~/piscine/test$ ./test "bcvbvZ"
z z
student@ubuntu:~/piscine/test$ ./test "nbz" student@ubuntu:~/piscine/test$ ./test "nbv"
z z
student@ubuntu:~/piscine/test$ ./test student@ubuntu:~/piscine/test$ ./test
z
``` ```

6
subjects/hello.en.md

@ -2,11 +2,9 @@
### Instructions ### Instructions
Write a program that displays "Hello World!". Write a program that displays "Hello World!" followed by a newline(`'\n'`).
### Expected main and function for the program ### Usage
### Expected output
```console ```console
student@ubuntu:~/piscine/test$ go build student@ubuntu:~/piscine/test$ go build

2
subjects/onlya.en.md

@ -2,4 +2,4 @@
### Instructions ### Instructions
Write a program that displays a 'a' character on the standard output. Write a program that displays a `a` character on the standard output. (and nothing else)

4
subjects/onlyz.en.md

@ -1,5 +1,5 @@
## displayalpham ## onlyz
### Instructions ### Instructions
Write a program that displays a 'z' character on the standard output. Write a program that displays a `z` character on the standard output. (and nothing else)

Loading…
Cancel
Save