Browse Source

correction: namings

content-update
lee 4 years ago
parent
commit
1600d27abf
  1. 36
      subjects/quadchecker/README.md
  2. 18
      subjects/quadchecker/audit/README.md

36
subjects/quadchecker/README.md

@ -1,10 +1,10 @@
## quadChecker
## 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.
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`.
@ -17,46 +17,46 @@ Create a program `quadChecker` that takes a `string` as an argument and displays
- If it's `quadA`
```console
student@ubuntu:~/[[ROOT]]/quadChecker$ ls -l
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: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
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$
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
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1
A
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadD 1 1
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadD 1 1
A
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadE 1 1
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 1
A
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadC 1 1 | ./quadChecker
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1 | ./quadchecker
[quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1]
student@ubuntu:~/[[ROOT]]/quadChecker$
student@ubuntu:~/[[ROOT]]/quadchecker$
```
- If it's `quadC 1 2` :
```console
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadE 1 2
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2
A
C
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadC 1 2
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 2
A
C
student@ubuntu:~/[[ROOT]]/quadChecker$ ./quadE 1 2 | ./quadChecker
student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2 | ./quadchecker
[quadC] [1] [2] || [quadE] [1] [2]
student@ubuntu:~/[[ROOT]]/quadChecker$
student@ubuntu:~/[[ROOT]]/quadchecker$
```

18
subjects/quadchecker/audit/README.md

@ -1,6 +1,6 @@
#### Quadrangle Checker
##### Try running the program: `"./quadA 3 3 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### 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 | ./quadChecker"`
##### Try running the program: `"echo 0 0 | ./quadchecker"`
```
Not a Raid function

Loading…
Cancel
Save