Browse Source

renaming: quadverifier -> quadchecker

pull/662/head
lee 4 years ago
parent
commit
632d357dcd
  1. 62
      subjects/quadchecker/README.md
  2. 20
      subjects/quadchecker/audit/README.md
  3. 62
      subjects/quadverifier/README.md

62
subjects/quadchecker/README.md

@ -0,0 +1,62 @@
## quadChecker
### Instructions
This raid is based on the `quad` functions.
Create a program `quadChecker` that takes a `string` as an argument and displays the name of the matching `quad` and its dimensions.
- If the argument is not a `raid` the program should print `Not a Raid function`.
- All answers must end with a newline (`'\n'`).
- If there is more than one `quad` matches, the program must display them all alphabetically ordered and separated by a `||`.
### Usage
- If it's `quadA`
```console
student@ubuntu:~/[[ROOT]]/quadChecker$ ls -l
-rw-r--r-- 1 student student nov 23 14:30 main.go
-rwxr-xr-x 1 student student nov 23 19:18 quadChecker
-rwxr-xr-x 1 student student nov 23 19:50 quadA
-rwxr-xr-x 1 student student nov 23 19:50 quadB
-rwxr-xr-x 1 student student nov 23 19:50 quadC
-rwxr-xr-x 1 student student nov 23 19:50 quadD
-rwxr-xr-x 1 student student nov 23 19:50 quadE
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadA 3 3 | ./quadChecker
[quadA] [3] [3]
student@ubuntu:~/[[ROOT]]/quadChecker$
student@ubuntu:~/[[ROOT]]/quadChecker$
student@ubuntu:~/[[ROOT]]/quadChecker$
student@ubuntu:~/[[ROOT]]/quadChecker$
```
- If it's `quadC 1 1` :
```console
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadC 1 1
A
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadD 1 1
A
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadE 1 1
A
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadC 1 1 | ./quadChecker
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1]
student@ubuntu:~/[[ROOT]]/quadChecker$
```
- If it's `quadC 1 2` :
```console
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadE 1 2
A
C
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadC 1 2
A
C
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadE 1 2 | ./quadChecker
[quadC] [1] [2] || [quadE] [1] [2]
student@ubuntu:~/[[ROOT]]/quadChecker$
```

20
subjects/quadverifier/audit/README.md → subjects/quadchecker/audit/README.md

@ -1,6 +1,6 @@
#### Quadrangle verifier
#### Quadrangle Checker
##### Try running the program: `"./quadA 3 3 | ./quadVerifier"`
##### Try running the program: `"./quadA 3 3 | ./quadChecker"`
```
[quadA] [3] [3]
@ -8,7 +8,7 @@
###### Does the program returns the value above?
##### Try running the program: `"./quadB 3 3 | ./quadVerifier"`
##### Try running the program: `"./quadB 3 3 | ./quadChecker"`
```
[quadB] [3] [3]
@ -16,7 +16,7 @@
###### Does the program returns the value above?
##### Try running the program: `"./quadC 1 1 | ./quadVerifier"`
##### Try running the program: `"./quadC 1 1 | ./quadChecker"`
```
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1]
@ -24,7 +24,7 @@
###### Does the program returns the value above?
##### Try running the program: `"./quadE 1 2 | ./quadVerifier"`
##### Try running the program: `"./quadE 1 2 | ./quadChecker"`
```
[quadC] [1] [2] || [quadE] [1] [2]
@ -32,7 +32,7 @@
###### Does the program returns the value above?
##### Try running the program: `"./quadE 2 1 | ./quadVerifier"`
##### Try running the program: `"./quadE 2 1 | ./quadChecker"`
```
[quadD] [2] [1] || [quadE] [2] [1]
@ -40,7 +40,7 @@
###### Does the program returns the value above?
##### Try running the program: `"./quadC 2 1 | ./quadVerifier"`
##### Try running the program: `"./quadC 2 1 | ./quadChecker"`
```
[quadC] [2] [1]
@ -48,7 +48,7 @@
###### Does the program returns the value above?
##### Try running the program: `"./quadD 1 2 | ./quadVerifier"`
##### Try running the program: `"./quadD 1 2 | ./quadChecker"`
```
[quadD] [1] [2]
@ -56,7 +56,7 @@
###### Does the program returns the value above?
##### Try running the program: `"./quadE 1 1 | ./quadVerifier"`
##### Try running the program: `"./quadE 1 1 | ./quadChecker"`
```
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1]
@ -64,7 +64,7 @@
###### Does the program returns the value above?
##### Try running the program: `"echo 0 0 | ./quadVerifier"`
##### Try running the program: `"echo 0 0 | ./quadChecker"`
```
Not a Raid function

62
subjects/quadverifier/README.md

@ -1,62 +0,0 @@
## quadverifier
### Instructions
This raid is based on the `quad` functions.
Create a program `quadVerifier` that takes a `string` as an argument and displays the name of the matching `quad` and its dimensions.
- If the argument is not a `raid` the program should print `Not a Raid function`.
- All answers must end with a newline (`'\n'`).
- If there is more than one `quad` matches, the program must display them all alphabetically ordered and separated by a `||`.
### Usage
- If it's `quadA`
```console
student@ubuntu:~/[[ROOT]]/quadverifier$ ls -l
-rw-r--r-- 1 student student nov 23 14:30 main.go
-rwxr-xr-x 1 student student nov 23 19:18 quadVerifier
-rwxr-xr-x 1 student student nov 23 19:50 quadA
-rwxr-xr-x 1 student student nov 23 19:50 quadB
-rwxr-xr-x 1 student student nov 23 19:50 quadC
-rwxr-xr-x 1 student student nov 23 19:50 quadD
-rwxr-xr-x 1 student student nov 23 19:50 quadE
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadA 3 3 | ./quadVerifier
[quadA] [3] [3]
student@ubuntu:~/[[ROOT]]/quadverifier$
student@ubuntu:~/[[ROOT]]/quadverifier$
student@ubuntu:~/[[ROOT]]/quadverifier$
student@ubuntu:~/[[ROOT]]/quadverifier$
```
- If it's `quadC 1 1` :
```console
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadC 1 1
A
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadD 1 1
A
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadE 1 1
A
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadC 1 1 | ./quadVerifier
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1]
student@ubuntu:~/[[ROOT]]/quadverifier$
```
- If it's `quadC 1 2` :
```console
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadE 1 2
A
C
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadC 1 2
A
C
student@ubuntu:~/[[ROOT]]/quadverifier$ ./quadE 1 2 | ./quadVerifier
[quadC] [1] [2] || [quadE] [1] [2]
student@ubuntu:~/[[ROOT]]/quadverifier$
```
Loading…
Cancel
Save