translation in french for raids1

This commit is contained in:
Christopher Fremond 2019-06-06 17:59:53 +01:00 committed by Christopher Fremond
parent d5e6a8955d
commit b2e64473ca
5 changed files with 605 additions and 0 deletions

121
subjects/raid1a.fr.md Normal file
View File

@ -0,0 +1,121 @@
## raid1a
### Instructions
Écrire une fonction `Raid1a` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1a(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o---o
| |
o---o
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o---o
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1a(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
o
|
|
|
o
student@ubuntu:~/student/test$
```

121
subjects/raid1b.fr.md Normal file
View File

@ -0,0 +1,121 @@
## raid1b
### Instructions
Écrire une fonction `Raid1b` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1b(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/***\
* *
\***/
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/***\
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1b(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
/
*
*
*
\
student@ubuntu:~/student/test$
```

121
subjects/raid1c.fr.md Normal file
View File

@ -0,0 +1,121 @@
## raid1c
### Instructions
Écrire une fonction `Raid1c` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1c(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction ::
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBA
B B
CBBBC
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBA
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1c(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
B
B
B
C
student@ubuntu:~/student/test$
```

121
subjects/raid1d.fr.md Normal file
View File

@ -0,0 +1,121 @@
## raid1d
### Instructions
Écrire une fonction `Raid1d` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1d(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
B B
ABBBC
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1d(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
B
B
B
A
student@ubuntu:~/student/test$
```

121
subjects/raid1e.fr.md Normal file
View File

@ -0,0 +1,121 @@
## raid1e
### Instructions
Écrire une fonction `Raid1e` qui affiche un carré **valide** de largeur `x` et de hauteur `y`.
Cette fonction doit dessiner les carrés comme sur les examples.
### Fonction attendue
```go
func Raid1e(x,y int) {
}
```
### Utilisation
Voici d'éventuels programmes pour tester votre fonction :
Programme #1
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(5,3)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
B B
CBBBA
student@ubuntu:~/student/test$
```
Programme #2
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(5,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
ABBBC
student@ubuntu:~/student/test$
```
Programme #3
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(1,1)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
student@ubuntu:~/student/test$
```
Programme #4
```go
package main
import (
"fmt"
student "./student"
)
func main() {
student.Raid1e(1,5)
}
```
Et son résultat :
```console
student@ubuntu:~/student/test$ go build
student@ubuntu:~/student/test$ ./test
A
B
B
B
C
student@ubuntu:~/student/test$
```