diff --git a/subjects/abort/README.md b/subjects/abort/README.md index d7b7be872..2699d2362 100644 --- a/subjects/abort/README.md +++ b/subjects/abort/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/abort/test$ go build +student@ubuntu:~/abort/test$ ./test 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/abort/test$ ``` diff --git a/subjects/activebits/README.md b/subjects/activebits/README.md index 6226c35cf..12c2168b8 100644 --- a/subjects/activebits/README.md +++ b/subjects/activebits/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/activebits/test$ go build +student@ubuntu:~/activebits/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/activebits/test$ ``` diff --git a/subjects/adding/README.md b/subjects/adding/README.md index dfe488def..9a4b9308a 100644 --- a/subjects/adding/README.md +++ b/subjects/adding/README.md @@ -26,9 +26,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/adding/test$ cargo run -5 2261 305696 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/adding/test$ ``` diff --git a/subjects/adding_twice/README.md b/subjects/adding_twice/README.md index 4385a20ac..4055a896c 100644 --- a/subjects/adding_twice/README.md +++ b/subjects/adding_twice/README.md @@ -50,10 +50,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/adding_twice/test$ cargo run The value is 27 The value is 47 The value is 67 The value is -57 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/adding_twice/test$ ``` diff --git a/subjects/addlinkednumbers/README.md b/subjects/addlinkednumbers/README.md index bb8840375..b509af27f 100644 --- a/subjects/addlinkednumbers/README.md +++ b/subjects/addlinkednumbers/README.md @@ -60,8 +60,8 @@ func main() { An its output: ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main +student@ubuntu:~/addlinkednumbers/test$ go build +student@ubuntu:~/addlinkednumbers/test$ ./main 9 -> 0 -> 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/addlinkednumbers/test$ ``` diff --git a/subjects/addprimesum/README.md b/subjects/addprimesum/README.md index 4143acaf5..3c3929712 100644 --- a/subjects/addprimesum/README.md +++ b/subjects/addprimesum/README.md @@ -9,18 +9,18 @@ Write a program that takes a positive integer as argument and displays the sum o ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 5 +student@ubuntu:~/addprimesum/test$ go build +student@ubuntu:~/addprimesum/test$ ./test 5 10 -student@ubuntu:~/[[ROOT]]/test$ ./test 7 +student@ubuntu:~/addprimesum/test$ ./test 7 17 -student@ubuntu:~/[[ROOT]]/test$ ./test -2 +student@ubuntu:~/addprimesum/test$ ./test -2 0 -student@ubuntu:~/[[ROOT]]/test$ ./test 0 +student@ubuntu:~/addprimesum/test$ ./test 0 0 -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/addprimesum/test$ ./test 0 -student@ubuntu:~/[[ROOT]]/test$ ./test 5 7 +student@ubuntu:~/addprimesum/test$ ./test 5 7 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/addprimesum/test$ ``` diff --git a/subjects/advancedsortwordarr/README.md b/subjects/advancedsortwordarr/README.md index 48b4c6c97..d6e7f91ae 100644 --- a/subjects/advancedsortwordarr/README.md +++ b/subjects/advancedsortwordarr/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/advancedsortwordarr/test$ go build +student@ubuntu:~/advancedsortwordarr/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/advancedsortwordarr/test$ ``` diff --git a/subjects/alphacount/README.md b/subjects/alphacount/README.md index f7826f8b6..e0bff8752 100644 --- a/subjects/alphacount/README.md +++ b/subjects/alphacount/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/alphacount/test$ go build +student@ubuntu:~/alphacount/test$ ./test 10 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/alphacount/test$ ``` diff --git a/subjects/alphamirror/README.md b/subjects/alphamirror/README.md index d1471bba3..edfb537d7 100644 --- a/subjects/alphamirror/README.md +++ b/subjects/alphamirror/README.md @@ -16,11 +16,11 @@ If the number of arguments is different from 1, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/alphamirror$ go build -student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "abc" +student@ubuntu:~/alphamirror$ go build +student@ubuntu:~/alphamirror$ ./alphamirror "abc" zyx -student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e +student@ubuntu:~/alphamirror$ ./alphamirror "My horse is Amazing." | cat -e Nb slihv rh Znzarmt.$ -student@ubuntu:~/[[ROOT]]/alphamirror$ ./alphamirror -student@ubuntu:~/[[ROOT]]/alphamirror$ +student@ubuntu:~/alphamirror$ ./alphamirror +student@ubuntu:~/alphamirror$ ``` diff --git a/subjects/any/README.md b/subjects/any/README.md index e736286b8..f9ca5e6a4 100644 --- a/subjects/any/README.md +++ b/subjects/any/README.md @@ -41,9 +41,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/any/test$ go build +student@ubuntu:~/any/test$ ./test false true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/any/test$ ``` diff --git a/subjects/appendrange/README.md b/subjects/appendrange/README.md index 2029de17d..894d5f5e5 100644 --- a/subjects/appendrange/README.md +++ b/subjects/appendrange/README.md @@ -39,9 +39,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/appendrange/test$ go build +student@ubuntu:~/appendrange/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/appendrange/test$ ``` diff --git a/subjects/arrange_it/README.md b/subjects/arrange_it/README.md index cf13f3737..e991fd8a5 100644 --- a/subjects/arrange_it/README.md +++ b/subjects/arrange_it/README.md @@ -35,7 +35,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/arrange_it/test$ cargo run "This is a Test" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/arrange_it/test$ ``` diff --git a/subjects/arrays/README.md b/subjects/arrays/README.md index 047e9a09c..543a6237e 100644 --- a/subjects/arrays/README.md +++ b/subjects/arrays/README.md @@ -54,10 +54,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/arrays/test$ cargo run The Sum of the elements in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] = 55 The Sum of the elements in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] = 55 The Sum of the elements in [5, 5, 5, 5, 5, 5, 5, 5, 5, 5] = 50 Array size 32 with only 10's in it [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/arrays/test$ ``` diff --git a/subjects/atoi/README.md b/subjects/atoi/README.md index 21d70dfe5..291067ba6 100644 --- a/subjects/atoi/README.md +++ b/subjects/atoi/README.md @@ -45,8 +45,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/atoi/test$ go build +student@ubuntu:~/atoi/test$ ./test 12345 12345 0 @@ -55,5 +55,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test -1234 0 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/atoi/test$ ``` diff --git a/subjects/atoibase/README.md b/subjects/atoibase/README.md index af936db7a..6c6f1cb50 100644 --- a/subjects/atoibase/README.md +++ b/subjects/atoibase/README.md @@ -50,12 +50,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/atoibase/test$ go build +student@ubuntu:~/atoibase/test$ ./test 125 125 125 125 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/atoibase/test$ ``` diff --git a/subjects/balancedstring/README.md b/subjects/balancedstring/README.md index b8a1702b5..a409dd40a 100644 --- a/subjects/balancedstring/README.md +++ b/subjects/balancedstring/README.md @@ -14,14 +14,14 @@ It will only be tested strings containing the characters 'C' and 'D'. ### Usage ```console -student@ubuntu:~/[[ROOT]]/balancedstring$ go build -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDCCDDCDCD" +student@ubuntu:~/balancedstring$ go build +student@ubuntu:~/balancedstring$ ./balancedstring "CDCCDDCDCD" 4 -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDDDDCCCDC" +student@ubuntu:~/balancedstring$ ./balancedstring "CDDDDCCCDC" 3 -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "DDDDCCCC" +student@ubuntu:~/balancedstring$ ./balancedstring "DDDDCCCC" 1 -student@ubuntu:~/[[ROOT]]/balancedstring$ ./balancedstring "CDCCCDDCDD" +student@ubuntu:~/balancedstring$ ./balancedstring "CDCCCDDCDD" 2 ``` diff --git a/subjects/banner/README.md b/subjects/banner/README.md index 1b73f5988..93697348c 100644 --- a/subjects/banner/README.md +++ b/subjects/banner/README.md @@ -111,10 +111,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/banner/test$ cargo run "0.5" "0" "invalid float literal" "invalid float literal" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/banner/test$ ``` diff --git a/subjects/basicatoi/README.md b/subjects/basicatoi/README.md index 19a9e8444..804b5913b 100644 --- a/subjects/basicatoi/README.md +++ b/subjects/basicatoi/README.md @@ -40,10 +40,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/basicatoi/test$ go build +student@ubuntu:~/basicatoi/test$ ./test 12345 12345 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/basicatoi/test$ ``` diff --git a/subjects/basicatoi2/README.md b/subjects/basicatoi2/README.md index e248778c8..b5f9779b7 100644 --- a/subjects/basicatoi2/README.md +++ b/subjects/basicatoi2/README.md @@ -41,11 +41,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/basicatoi2/test$ go build +student@ubuntu:~/basicatoi2/test$ ./test 12345 12345 0 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/basicatoi2/test$ ``` diff --git a/subjects/basicjoin/README.md b/subjects/basicjoin/README.md index bba6caa06..68715a5d6 100644 --- a/subjects/basicjoin/README.md +++ b/subjects/basicjoin/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/basicjoin/test$ go build +student@ubuntu:~/basicjoin/test$ ./test Hello! How are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/basicjoin/test$ ``` diff --git a/subjects/bigger/README.md b/subjects/bigger/README.md index 9687e5b01..81a54d5f5 100644 --- a/subjects/bigger/README.md +++ b/subjects/bigger/README.md @@ -38,7 +38,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/bigger/test$ cargo run The biggest of the elements in the HashMap is 334 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/bigger/test$ ``` diff --git a/subjects/blood_types/README.md b/subjects/blood_types/README.md index fd9ede5aa..aea3b28ab 100644 --- a/subjects/blood_types/README.md +++ b/subjects/blood_types/README.md @@ -104,9 +104,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/blood_types/test$ cargo run recipients of O+ [AB+, O+, A+, B+] donors of O+ [O+, O-] donors of O+ can receive from A- false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/blood_types/test$ ``` diff --git a/subjects/blood_types_s/README.md b/subjects/blood_types_s/README.md index 9fe000719..493b0160d 100644 --- a/subjects/blood_types_s/README.md +++ b/subjects/blood_types_s/README.md @@ -84,9 +84,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/blood_types_s/test$ cargo run recipients of O+ [BloodType { antigen: AB, rh_factor: Positive }, BloodType { antigen: O, rh_factor: Positive }, BloodType { antigen: A, rh_factor: Positive }, BloodType { antigen: B, rh_factor: Positive }] donors of O+ [BloodType { antigen: O, rh_factor: Positive }, BloodType { antigen: O, rh_factor: Negative }] donors of O+ can receive from BloodType { antigen: O, rh_factor: Positive } true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/blood_types_s/test$ ``` diff --git a/subjects/boolean/README.md b/subjects/boolean/README.md index 95407d9c1..5bfabd87f 100644 --- a/subjects/boolean/README.md +++ b/subjects/boolean/README.md @@ -40,9 +40,9 @@ func main() { ### Usage ```console -student@ubuntu:~/[[ROOT]]/boolean$ go build -student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not" "odd" +student@ubuntu:~/boolean$ go build +student@ubuntu:~/boolean$ ./boolean "not" "odd" I have an even number of arguments -student@ubuntu:~/[[ROOT]]/boolean$ ./boolean "not even" +student@ubuntu:~/boolean$ ./boolean "not even" I have an odd number of arguments ``` diff --git a/subjects/border_cross/README.md b/subjects/border_cross/README.md index 2a0b329fc..3ee9ebaea 100644 --- a/subjects/border_cross/README.md +++ b/subjects/border_cross/README.md @@ -73,7 +73,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/border_cross/test$ cargo run ["Model 3", "Ranger"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/border_cross/test$ ``` diff --git a/subjects/borrow/README.md b/subjects/borrow/README.md index 4c2074114..508d470d0 100644 --- a/subjects/borrow/README.md +++ b/subjects/borrow/README.md @@ -33,8 +33,8 @@ fn main() { And its output: ```rust -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/borrow/test$ cargo run str_len("hello") = 5 str_len("camelCase") = 9 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/borrow/test$ ``` diff --git a/subjects/borrow_box/README.md b/subjects/borrow_box/README.md index b29638f25..69cce5bb9 100644 --- a/subjects/borrow_box/README.md +++ b/subjects/borrow_box/README.md @@ -82,10 +82,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/borrow_box/test$ cargo run ("Same score! tied", 0) ("Same score! tied", 2) ("Joao", 3) "game deleted: id -> 0" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/borrow_box/test$ ``` diff --git a/subjects/borrow_me_the_reference/README.md b/subjects/borrow_me_the_reference/README.md index 4edd109e7..75eefb126 100644 --- a/subjects/borrow_me_the_reference/README.md +++ b/subjects/borrow_me_the_reference/README.md @@ -54,7 +54,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/borrow_me_the_reference/test$ cargo run ("borrow", ["✔", "✔", "✘", "✔"], 75) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/borrow_me_the_reference/test$ ``` diff --git a/subjects/box_it/README.md b/subjects/box_it/README.md index 535b42947..d084bf14a 100644 --- a/subjects/box_it/README.md +++ b/subjects/box_it/README.md @@ -50,10 +50,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/box_it/test$ cargo run Box value : [5500, 8900, 32] size occupied in the stack : 8 bytes value : [5500, 8900, 32] size occupied in the stack : 24 bytes -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/box_it/test$ ``` diff --git a/subjects/box_recursion/README.md b/subjects/box_recursion/README.md index 9d602743e..04cc37216 100644 --- a/subjects/box_recursion/README.md +++ b/subjects/box_recursion/README.md @@ -72,9 +72,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/box_recursion/test$ cargo run WorkEnvironment { grade: Some(Worker { worker_type: "Normal Worker", worker_name: "Alice", next_worker: Some(Worker { worker_type: "Normal Worker", worker_name: "Ana", next_worker: Some(Worker { worker_type: "Manager", worker_name: "Monica", next_worker: Some(Worker { worker_type: "CEO", worker_name: "Marie", next_worker: None }) }) }) }) } Some(("Alice", "Normal Worker")) WorkEnvironment { grade: None } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/box_recursion/test$ ``` diff --git a/subjects/boxing_todo/README.md b/subjects/boxing_todo/README.md index 239e4de55..b1373458b 100644 --- a/subjects/boxing_todo/README.md +++ b/subjects/boxing_todo/README.md @@ -165,9 +165,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/boxing_todo/test$ cargo run TodoList { title: "TODO LIST FOR PISCINE RUST", tasks: [Task { id: 0, description: "do this", level: 0 }, Task { id: 1, description: "do that", level: 5 }] } Todo List parse failed: None Fail to parses todo Some(Malformed(UnexpectedCharacter { ch: ',', line: 2, column: 18 })) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/boxing_todo/test$ ``` diff --git a/subjects/brackets/README.md b/subjects/brackets/README.md index ef9c22852..7c54e2412 100644 --- a/subjects/brackets/README.md +++ b/subjects/brackets/README.md @@ -13,13 +13,13 @@ If there is no argument, the program must print nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/brackets$ ./brackets '([)]' | cat -e Error$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e +student@ubuntu:~/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e OK$ OK$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets -student@ubuntu:~/[[ROOT]]/brackets$ +student@ubuntu:~/brackets$ ./brackets +student@ubuntu:~/brackets$ ``` diff --git a/subjects/brackets_matching/README.md b/subjects/brackets_matching/README.md index b152bbc24..67aa9c6ce 100644 --- a/subjects/brackets_matching/README.md +++ b/subjects/brackets_matching/README.md @@ -13,13 +13,13 @@ If there is no argument, the program must print nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '(johndoe)' | cat -e +student@ubuntu:~/brackets_matching/brackets$ ./brackets '(johndoe)' | cat -e OK$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '([)]' | cat -e +student@ubuntu:~/brackets_matching/brackets$ ./brackets '([)]' | cat -e Error$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e +student@ubuntu:~/brackets_matching/brackets$ ./brackets '' '{[(0 + 0)(1 + 1)](3*(-1)){()}}' | cat -e OK$ OK$ -student@ubuntu:~/[[ROOT]]/brackets$ ./brackets -student@ubuntu:~/[[ROOT]]/brackets$ +student@ubuntu:~/brackets_matching/brackets$ ./brackets +student@ubuntu:~/brackets_matching/brackets$ ``` diff --git a/subjects/brainfuck/README.md b/subjects/brainfuck/README.md index ec03c50d6..ab31cfe50 100644 --- a/subjects/brainfuck/README.md +++ b/subjects/brainfuck/README.md @@ -22,13 +22,13 @@ Any other character is a comment. ### Usage ```console -student@ubuntu:~/[[ROOT]]/brainfuck$ go build -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e +student@ubuntu:~/brainfuck$ go build +student@ubuntu:~/brainfuck$ ./brainfuck "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | cat -e Hello World!$ -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e +student@ubuntu:~/brainfuck$ ./brainfuck "+++++[>++++[>++++H>+++++i<<-]>>>++\n<<<<-]>>--------.>+++++.>." | cat -e Hi$ -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e +student@ubuntu:~/brainfuck$ ./brainfuck "++++++++++[>++++++++++>++++++++++>++++++++++<<<-]>---.>--.>-.>++++++++++." | cat -e abc$ -student@ubuntu:~/[[ROOT]]/brainfuck$ ./brainfuck -student@ubuntu:~/[[ROOT]]/brainfuck$ +student@ubuntu:~/brainfuck$ ./brainfuck +student@ubuntu:~/brainfuck$ ``` diff --git a/subjects/btreeapplybylevel/README.md b/subjects/btreeapplybylevel/README.md index 47e6216b2..090e53c04 100644 --- a/subjects/btreeapplybylevel/README.md +++ b/subjects/btreeapplybylevel/README.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplybylevel/test$ go build +student@ubuntu:~/btreeapplybylevel/test$ ./test 4 1 7 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplybylevel/test$ ``` diff --git a/subjects/btreeapplyinorder/README.md b/subjects/btreeapplyinorder/README.md index e78f7ea15..66c018a6f 100644 --- a/subjects/btreeapplyinorder/README.md +++ b/subjects/btreeapplyinorder/README.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplyinorder/test$ go build +student@ubuntu:~/btreeapplyinorder/test$ ./test 1 4 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplyinorder/test$ ``` diff --git a/subjects/btreeapplypostorder/README.md b/subjects/btreeapplypostorder/README.md index ab5a245fc..018ff4b0e 100644 --- a/subjects/btreeapplypostorder/README.md +++ b/subjects/btreeapplypostorder/README.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplypostorder/test$ go build +student@ubuntu:~/btreeapplypostorder/test$ ./test 1 5 7 4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplypostorder/test$ ``` diff --git a/subjects/btreeapplypreorder/README.md b/subjects/btreeapplypreorder/README.md index 79518befd..259ec7013 100644 --- a/subjects/btreeapplypreorder/README.md +++ b/subjects/btreeapplypreorder/README.md @@ -37,11 +37,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeapplypreorder/test$ go build +student@ubuntu:~/btreeapplypreorder/test$ ./test 4 1 7 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeapplypreorder/test$ ``` diff --git a/subjects/btreedeletenode/README.md b/subjects/btreedeletenode/README.md index 2c90da5c8..696d80e38 100644 --- a/subjects/btreedeletenode/README.md +++ b/subjects/btreedeletenode/README.md @@ -43,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreedeletenode/test$ go build +student@ubuntu:~/btreedeletenode/test$ ./test Before delete: 1 4 @@ -54,5 +54,5 @@ After delete: 1 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreedeletenode/test$ ``` diff --git a/subjects/btreeinsertdata/README.md b/subjects/btreeinsertdata/README.md index 1a35ba5ce..43f83930e 100644 --- a/subjects/btreeinsertdata/README.md +++ b/subjects/btreeinsertdata/README.md @@ -47,11 +47,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/btreeinsertdata$ go build -student@ubuntu:~/[[ROOT]]/btreeinsertdata$ ./btreeinsertdata +student@ubuntu:~/btreeinsertdata$ go build +student@ubuntu:~/btreeinsertdata$ ./btreeinsertdata 1 4 5 7 -student@ubuntu:~/[[ROOT]]/btreeinsertdata$ +student@ubuntu:~/btreeinsertdata$ ``` diff --git a/subjects/btreeisbinary/README.md b/subjects/btreeisbinary/README.md index ca87f236f..218e4d5fe 100644 --- a/subjects/btreeisbinary/README.md +++ b/subjects/btreeisbinary/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreeisbinary/test$ go build +student@ubuntu:~/btreeisbinary/test$ ./test true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeisbinary/test$ ``` diff --git a/subjects/btreelevelcount/README.md b/subjects/btreelevelcount/README.md index 0d7c47d64..070f3c0f2 100644 --- a/subjects/btreelevelcount/README.md +++ b/subjects/btreelevelcount/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreelevelcount/test$ go build +student@ubuntu:~/btreelevelcount/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreelevelcount/test$ ``` diff --git a/subjects/btreemax/README.md b/subjects/btreemax/README.md index 230c5ac47..2ede56bbd 100644 --- a/subjects/btreemax/README.md +++ b/subjects/btreemax/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreemax/test$ go build +student@ubuntu:~/btreemax/test$ ./test 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreemax/test$ ``` diff --git a/subjects/btreemin/README.md b/subjects/btreemin/README.md index 13bf7a888..0658646fc 100644 --- a/subjects/btreemin/README.md +++ b/subjects/btreemin/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreemin/test$ go build +student@ubuntu:~/btreemin/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreemin/test$ ``` diff --git a/subjects/btreeprintroot/README.md b/subjects/btreeprintroot/README.md index 374054fee..6d167e9c0 100644 --- a/subjects/btreeprintroot/README.md +++ b/subjects/btreeprintroot/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/printroot$ go build -student@ubuntu:~/[[ROOT]]/printroot$ ./printroot +student@ubuntu:~/btreeprintroot/printroot$ go build +student@ubuntu:~/btreeprintroot/printroot$ ./printroot who are you -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreeprintroot/test$ ``` diff --git a/subjects/btreesearchitem/README.md b/subjects/btreesearchitem/README.md index 00d13efbd..0a8b6672d 100644 --- a/subjects/btreesearchitem/README.md +++ b/subjects/btreesearchitem/README.md @@ -63,11 +63,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreesearchitem/test$ go build +student@ubuntu:~/btreesearchitem/test$ ./test Item selected -> 7 Parent of selected item -> 4 Left child of selected item -> 5 Right child of selected item -> nil -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreesearchitem/test$ ``` diff --git a/subjects/btreetransplant/README.md b/subjects/btreetransplant/README.md index 4748db9dd..5aea88c35 100644 --- a/subjects/btreetransplant/README.md +++ b/subjects/btreetransplant/README.md @@ -39,11 +39,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/btreetransplant/test$ go build +student@ubuntu:~/btreetransplant/test$ ./test 3 4 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/btreetransplant/test$ ``` diff --git a/subjects/capitalize/README.md b/subjects/capitalize/README.md index 24482ce4c..7f9013bf5 100644 --- a/subjects/capitalize/README.md +++ b/subjects/capitalize/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/capitalize/test$ go build +student@ubuntu:~/capitalize/test$ ./test Hello! How Are You? How+Are+Things+4you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/capitalize/test$ ``` diff --git a/subjects/capitalizing/README.md b/subjects/capitalizing/README.md index ec0afadd4..0da98ebb5 100644 --- a/subjects/capitalizing/README.md +++ b/subjects/capitalizing/README.md @@ -38,9 +38,9 @@ fn main() { And its output ```consoole -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/capitalizing/test$ cargo run Joe is missing Jill Is Leaving A HEllO thERE -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/capitalizing/test$ ``` diff --git a/subjects/card_deck/README.md b/subjects/card_deck/README.md index eb65404d0..226b91d60 100644 --- a/subjects/card_deck/README.md +++ b/subjects/card_deck/README.md @@ -82,7 +82,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/card_deck/test$ cargo run Your card is Card { suit: Club, rank: Ace } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/card_deck/test$ ``` diff --git a/subjects/cat/README.md b/subjects/cat/README.md index 951eaa487..5c2e505a4 100644 --- a/subjects/cat/README.md +++ b/subjects/cat/README.md @@ -9,26 +9,26 @@ Write a program that behaves like a simplified `cat` command. - If the program is called without arguments it should take the standard input (stdin) and print it back on the standard output (stdout). ```console -student@ubuntu:~/[[ROOT]]/cat$ echo '"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing' > quest8.txt -student@ubuntu:~/[[ROOT]]/cat$ cat < quest8T.txt +student@ubuntu:~/cat$ echo '"Programming is a skill best acquired by practice and example rather than from books" by Alan Turing' > quest8.txt +student@ubuntu:~/cat$ cat < quest8T.txt "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." EOF -student@ubuntu:~/[[ROOT]]/cat$ go build -student@ubuntu:~/[[ROOT]]/cat$ ./cat abc +student@ubuntu:~/cat$ go build +student@ubuntu:~/cat$ ./cat abc ERROR: abc: No such file or directory -student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt +student@ubuntu:~/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt abc +student@ubuntu:~/cat$ ./cat quest8.txt abc "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing ERROR: abc: No such file or directory -student@ubuntu:~/[[ROOT]]/cat$ cat quest8.txt | ./cat +student@ubuntu:~/cat$ cat quest8.txt | ./cat "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/[[ROOT]]/cat$ ./cat +student@ubuntu:~/cat$ ./cat Hello Hello ^C -student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt quest8T.txt +student@ubuntu:~/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." -student@ubuntu:~/[[ROOT]]/cat$ +student@ubuntu:~/cat$ ``` diff --git a/subjects/changes/README.md b/subjects/changes/README.md index 01c5af92d..1f75bdf3a 100644 --- a/subjects/changes/README.md +++ b/subjects/changes/README.md @@ -54,8 +54,8 @@ fn main() { And its expected output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/changes/test$ cargo run brightness = 0 new brightness = 200 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/changes/test$ ``` diff --git a/subjects/chunk/README.md b/subjects/chunk/README.md index 913c9f060..56fbeb8bc 100644 --- a/subjects/chunk/README.md +++ b/subjects/chunk/README.md @@ -33,12 +33,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/chunk/test$ go build +student@ubuntu:~/chunk/test$ ./test [] [[0 1 2] [3 4 5] [6 7]] [[0 1 2 3 4] [5 6 7]] [[0 1 2 3] [4 5 6 7]] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/chunk/test$ ``` diff --git a/subjects/cipher/README.md b/subjects/cipher/README.md index 9c283318b..a5451b1d3 100644 --- a/subjects/cipher/README.md +++ b/subjects/cipher/README.md @@ -48,9 +48,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/cipher/test$ cargo run Some(Ok(true)) Some(Err(CipherError { validation: false, expected: "1Svool 2dliow!" })) None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cipher/test$ ``` diff --git a/subjects/circle/README.md b/subjects/circle/README.md index e8efb61a7..cfb88a6f1 100644 --- a/subjects/circle/README.md +++ b/subjects/circle/README.md @@ -93,11 +93,11 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/circle/test$ cargo run circle = Circle { center: Point { x: 500.0, y: 500.0 }, radius: 150.0 } area = 70685.83470577035 circle = Circle { center: Point { x: 500.0, y: 500.0 }, radius: 150.0 } diameter = 300 circle1 = Circle { center: Point { x: 80.0, y: 115.0 }, radius: 30.0 } diameter = 60 circle and circle1 intersect = false distance between Point { x: 1.0, y: 1.0 } and Point { x: 0.0, y: 0.0 } is 1.4142135623730951 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/circle/test$ ``` diff --git a/subjects/cl-camp2/README.md b/subjects/cl-camp2/README.md index 40af5df7a..eb3cf1412 100644 --- a/subjects/cl-camp2/README.md +++ b/subjects/cl-camp2/README.md @@ -11,7 +11,7 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ cat -e r +student@ubuntu:~/cl-camp2/test$ cat -e r R$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp2/test$ ``` diff --git a/subjects/cl-camp4/README.md b/subjects/cl-camp4/README.md index 7033b3104..16b70f3dc 100644 --- a/subjects/cl-camp4/README.md +++ b/subjects/cl-camp4/README.md @@ -17,8 +17,8 @@ Create a file `myfamily.sh`, which will show a subject's family (key: relatives) ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ export HERO_ID=1 -student@ubuntu:~/[[ROOT]]/test$ ./myfamily.sh +student@ubuntu:~/cl-camp4/test$ export HERO_ID=1 +student@ubuntu:~/cl-camp4/test$ ./myfamily.sh Marlo Chandler-Jones (wife); Polly (aunt); Mrs. Chandler (mother-in-law); Keith Chandler, Ray Chandler, three unidentified others (brothers-in-law); unidentified father (deceased); Jackie Shorr (alleged mother; unconfirmed) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp4/test$ ``` diff --git a/subjects/cl-camp5/README.md b/subjects/cl-camp5/README.md index 37210ce32..f2572ab3f 100644 --- a/subjects/cl-camp5/README.md +++ b/subjects/cl-camp5/README.md @@ -13,11 +13,11 @@ That command will only show the name of the files without the `.sh`. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ./lookagain.sh | cat -e +student@ubuntu:~/cl-camp5/test$ ./lookagain.sh | cat -e file1$ file2$ file3$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp5/test$ ``` ### Hint diff --git a/subjects/cl-camp6/README.md b/subjects/cl-camp6/README.md index 846e71214..dfdf403e0 100644 --- a/subjects/cl-camp6/README.md +++ b/subjects/cl-camp6/README.md @@ -9,7 +9,7 @@ Create a file `countfiles.sh`, which will print the number **(and only the numbe ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ./countfiles.sh | cat -e +student@ubuntu:~/cl-camp6/test$ ./countfiles.sh | cat -e 12$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp6/test$ ``` diff --git a/subjects/cl-camp7/README.md b/subjects/cl-camp7/README.md index ac8661394..b59ae8ea7 100644 --- a/subjects/cl-camp7/README.md +++ b/subjects/cl-camp7/README.md @@ -9,7 +9,7 @@ Create a file `"\?$*'ChouMi'*$?\"` that will contain "01" and **nothing else**. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ls | cat -e +student@ubuntu:~/cl-camp7/test$ ls | cat -e "\?$*'ChouMi'*$?\"$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/cl-camp7/test$ ``` diff --git a/subjects/cleanstr/README.md b/subjects/cleanstr/README.md index cfce6779e..6929b5d98 100644 --- a/subjects/cleanstr/README.md +++ b/subjects/cleanstr/README.md @@ -17,13 +17,13 @@ program displays nothing. ### Usage : ```console -student@ubuntu:~/[[ROOT]]/cleanstr$ go build -student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/cleanstr$ go build +student@ubuntu:~/cleanstr$ ./cleanstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " only it's harder " +student@ubuntu:~/cleanstr$ ./cleanstr " only it's harder " only it's harder$ -student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" +student@ubuntu:~/cleanstr$ ./cleanstr " how funny" "Did you hear Mathilde ?" $ -student@ubuntu:~/[[ROOT]]/cleanstr$ ./cleanstr "" -student@ubuntu:~/[[ROOT]]/cleanstr$ +student@ubuntu:~/cleanstr$ ./cleanstr "" +student@ubuntu:~/cleanstr$ ``` diff --git a/subjects/closures/README.md b/subjects/closures/README.md index 3c5b04d1e..bc0512369 100644 --- a/subjects/closures/README.md +++ b/subjects/closures/README.md @@ -35,7 +35,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/closures/test$ cargo run All elements in [4, 16, 36, ..., 10000], len = 50 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/closures/test$ ``` diff --git a/subjects/collect/README.md b/subjects/collect/README.md index 443d37cbf..8370798d1 100644 --- a/subjects/collect/README.md +++ b/subjects/collect/README.md @@ -32,8 +32,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/collect/test$ cargo run [1, 2, 3, 4, 5, 7] [1, 2, 3, 4, 5, 7] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/collect/test$ ``` diff --git a/subjects/comcheck/README.md b/subjects/comcheck/README.md index 19d14407d..60425d651 100644 --- a/subjects/comcheck/README.md +++ b/subjects/comcheck/README.md @@ -11,10 +11,10 @@ Write a program `comcheck` that displays on the standard output `Alert!!!` follo ### Usage ```console -student@ubuntu:~/[[ROOT]]/comcheck$ go build -student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" +student@ubuntu:~/comcheck$ go build +student@ubuntu:~/comcheck$ ./comcheck "I" "Will" "Enter" "the" "galaxy" Alert!!! -student@ubuntu:~/[[ROOT]]/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" +student@ubuntu:~/comcheck$ ./comcheck "galaxy 01" "do" "you" "hear" "me" Alert!!! -student@ubuntu:~/[[ROOT]]/comcheck$ +student@ubuntu:~/comcheck$ ``` diff --git a/subjects/commits_stats/README.md b/subjects/commits_stats/README.md index 625d00fae..9d42fcaab 100644 --- a/subjects/commits_stats/README.md +++ b/subjects/commits_stats/README.md @@ -51,8 +51,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/commits_stats/test$ cargo run {"2020-W44": 5, "2020-W36": 1, "2020-W31": 1, ... ,"2020-W45": 4, "2020-W46": 4} {"homembaixinho": 2, "mwenzkowski": 3, ... ,"tamirzb": 1, "paul-ri": 2, "RPigott": 1} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/commits_stats/test$ ``` diff --git a/subjects/compact/README.md b/subjects/compact/README.md index 67056c7a3..67ca5cce7 100644 --- a/subjects/compact/README.md +++ b/subjects/compact/README.md @@ -53,8 +53,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/compact/test$ go build +student@ubuntu:~/compact/test$ ./test a b @@ -65,5 +65,5 @@ Size after compacting: 3 a b c -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/compact/test$ ``` diff --git a/subjects/compare/README.md b/subjects/compare/README.md index d1bb0ea11..c63eedf20 100644 --- a/subjects/compare/README.md +++ b/subjects/compare/README.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/compare/test$ go build +student@ubuntu:~/compare/test$ ./test 0 -1 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/compare/test$ ``` diff --git a/subjects/concat/README.md b/subjects/concat/README.md index 7e0c1a04b..b2cd81eee 100644 --- a/subjects/concat/README.md +++ b/subjects/concat/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/concat/test$ go build +student@ubuntu:~/concat/test$ ./test Hello! How are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/concat/test$ ``` diff --git a/subjects/concatparams/README.md b/subjects/concatparams/README.md index 65b9756ce..83b449f9c 100644 --- a/subjects/concatparams/README.md +++ b/subjects/concatparams/README.md @@ -34,11 +34,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/concatparams/test$ go build +student@ubuntu:~/concatparams/test$ ./test Hello how are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/concatparams/test$ ``` diff --git a/subjects/convertbase/README.md b/subjects/convertbase/README.md index 5ef8ef577..21f2cf049 100644 --- a/subjects/convertbase/README.md +++ b/subjects/convertbase/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/convertbase/test$ go build +student@ubuntu:~/convertbase/test$ ./test 43 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/convertbase/test$ ``` diff --git a/subjects/copy/README.md b/subjects/copy/README.md index 0b6f8c4a1..99a5f5ce6 100644 --- a/subjects/copy/README.md +++ b/subjects/copy/README.md @@ -60,9 +60,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/copy/test$ cargo run (0, 1.0, inf) ("1 2 4 5 6", "2.718281828459045 7.38905609893065 54.598150033144236 148.4131591025766 403.4287934927351") ([1, 2, 4, 5], [0.0, 0.6931471805599453, 1.3862943611198906, 1.6094379124341003]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/copy/test$ ``` diff --git a/subjects/countdown/README.md b/subjects/countdown/README.md index e3f3854f1..d3454498b 100644 --- a/subjects/countdown/README.md +++ b/subjects/countdown/README.md @@ -7,8 +7,8 @@ Write a program that displays all digits in descending order, followed by a newl ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/countdown/test$ go build +student@ubuntu:~/countdown/test$ ./test 9876543210 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/countdown/test$ ``` diff --git a/subjects/countif/README.md b/subjects/countif/README.md index 2d7630c8f..31a32fdaa 100644 --- a/subjects/countif/README.md +++ b/subjects/countif/README.md @@ -37,9 +37,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/countif/test$ go build +student@ubuntu:~/countif/test$ ./test 0 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/countif/test$ ``` diff --git a/subjects/counting_words/README.md b/subjects/counting_words/README.md index dc3edb34a..242a94544 100644 --- a/subjects/counting_words/README.md +++ b/subjects/counting_words/README.md @@ -42,9 +42,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/counting_words/test$ cargo run {"hello": 1, "world": 1} {"and": 2, "human": 1, "universe": 2, "the": 2, "i\'m": 1, "about": 1, "einstein": 1, "are": 1, "infinite": 1, "sure": 1, "albert": 1, "two": 1, "things": 1, "not": 1, "stupidity": 1} {"batman": 3, "stop": 2} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/counting_words/test$ ``` diff --git a/subjects/createelem/README.md b/subjects/createelem/README.md index 13bae7444..9acb2ff6e 100644 --- a/subjects/createelem/README.md +++ b/subjects/createelem/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/createelem/test$ go build +student@ubuntu:~/createelem/test$ ./test &{1234} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/createelem/test$ ``` diff --git a/subjects/delete_prefix/README.md b/subjects/delete_prefix/README.md index b082825e2..bd6577c16 100644 --- a/subjects/delete_prefix/README.md +++ b/subjects/delete_prefix/README.md @@ -27,8 +27,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/delete_prefix/test$ cargo run Some("cdefghijklmnop") None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/delete_prefix/test$ ``` diff --git a/subjects/diamond_creation/README.md b/subjects/diamond_creation/README.md index 9cead7012..b49f80444 100644 --- a/subjects/diamond_creation/README.md +++ b/subjects/diamond_creation/README.md @@ -43,8 +43,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/diamond_creation/test$ cargo run ["A"] [" A ", " B B ", "C C", " B B ", " A "] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/diamond_creation/test$ ``` diff --git a/subjects/display_table/README.md b/subjects/display_table/README.md index a772c98db..d414e73ef 100644 --- a/subjects/display_table/README.md +++ b/subjects/display_table/README.md @@ -74,11 +74,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/display_table/test$ cargo run | Model | Piece N° | In Stock | Description | |---------+-------------+-----------+-------------| | model 1 | 43-EWQE304 | 30 | Piece for x | | model 2 | 98-QCVX5433 | 100000000 | - | | model y | 78-NMNH | 60 | nothing | -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/display_table/test$ ``` diff --git a/subjects/displaya/README.md b/subjects/displaya/README.md index 631cfe67a..485263653 100644 --- a/subjects/displaya/README.md +++ b/subjects/displaya/README.md @@ -9,12 +9,12 @@ If the number of arguments is not 1, the program displays an `a` followed by a n ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "abc" +student@ubuntu:~/displaya/test$ go build +student@ubuntu:~/displaya/test$ ./test "abc" a -student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvA" +student@ubuntu:~/displaya/test$ ./test "bcvbvA" a -student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" +student@ubuntu:~/displaya/test$ ./test "nbv" a -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/displaya/test$ ``` diff --git a/subjects/displayalpham/README.md b/subjects/displayalpham/README.md index 2f6a30b94..538ba76eb 100644 --- a/subjects/displayalpham/README.md +++ b/subjects/displayalpham/README.md @@ -7,8 +7,8 @@ Write a program that displays the alphabet, with even letters in uppercase, and ### Usage ```console -student@ubuntu:~/[[ROOT]]/displayalpham$ go build -student@ubuntu:~/[[ROOT]]/displayalpham$ ./displayalpham | cat -e +student@ubuntu:~/displayalpham$ go build +student@ubuntu:~/displayalpham$ ./displayalpham | cat -e aBcDeFgHiJkLmNoPqRsTuVwXyZ$ -student@ubuntu:~/[[ROOT]]/displayalpham$ +student@ubuntu:~/displayalpham$ ``` diff --git a/subjects/displayalrevm/README.md b/subjects/displayalrevm/README.md index 08238da0b..205211213 100644 --- a/subjects/displayalrevm/README.md +++ b/subjects/displayalrevm/README.md @@ -7,8 +7,8 @@ Write a program that displays the alphabet in reverse, with even letters in uppe ### Usage ```console -student@ubuntu:~/[[ROOT]]/displayalrevm$ go build -student@ubuntu:~/[[ROOT]]/displayalrevm$ ./displayalrevm | cat -e +student@ubuntu:~/displayalrevm$ go build +student@ubuntu:~/displayalrevm$ ./displayalrevm | cat -e zYxWvUtSrQpOnMlKjIhGfEdCbA$ -student@ubuntu:~/[[ROOT]]/displayalrevm$ +student@ubuntu:~/displayalrevm$ ``` diff --git a/subjects/displayfile/README.md b/subjects/displayfile/README.md index 55bfbe0d1..4fa71638d 100644 --- a/subjects/displayfile/README.md +++ b/subjects/displayfile/README.md @@ -7,13 +7,13 @@ Write a program that displays, on the standard output, the content of a file giv ### Usage : ```console -student@ubuntu:~/[[ROOT]]/displayfile$ go build -student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile +student@ubuntu:~/displayfile$ go build +student@ubuntu:~/displayfile$ ./displayfile File name missing -student@ubuntu:~/[[ROOT]]/displayfile$ echo "Almost there!!" > quest8.txt -student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt main.go +student@ubuntu:~/displayfile$ echo "Almost there!!" > quest8.txt +student@ubuntu:~/displayfile$ ./displayfile quest8.txt main.go Too many arguments -student@ubuntu:~/[[ROOT]]/displayfile$ ./displayfile quest8.txt +student@ubuntu:~/displayfile$ ./displayfile quest8.txt Almost there!! -student@ubuntu:~/[[ROOT]]/displayfile$ +student@ubuntu:~/displayfile$ ``` diff --git a/subjects/displayfirstparam/README.md b/subjects/displayfirstparam/README.md index da6d65648..abcdbdfdc 100644 --- a/subjects/displayfirstparam/README.md +++ b/subjects/displayfirstparam/README.md @@ -7,11 +7,11 @@ Write a program that displays its first argument, if there is one. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test hello there +student@ubuntu:~/displayfirstparam/test$ go build +student@ubuntu:~/displayfirstparam/test$ ./test hello there hello -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you +student@ubuntu:~/displayfirstparam/test$ ./test "hello there" how are you hello there -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/displayfirstparam/test$ ./test +student@ubuntu:~/displayfirstparam/test$ ``` diff --git a/subjects/displaylastparam/README.md b/subjects/displaylastparam/README.md index abcbcba67..35ef00f47 100644 --- a/subjects/displaylastparam/README.md +++ b/subjects/displaylastparam/README.md @@ -7,13 +7,13 @@ Write a program that displays its last argument, if there is one. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test hello there +student@ubuntu:~/displaylastparam/test$ go build +student@ubuntu:~/displaylastparam/test$ ./test hello there there -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" how are you +student@ubuntu:~/displaylastparam/test$ ./test "hello there" how are you you -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" +student@ubuntu:~/displaylastparam/test$ ./test "hello there" hello there -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/displaylastparam/test$ ./test +student@ubuntu:~/displaylastparam/test$ ``` diff --git a/subjects/displayz/README.md b/subjects/displayz/README.md index bb2c35475..181731660 100644 --- a/subjects/displayz/README.md +++ b/subjects/displayz/README.md @@ -9,12 +9,12 @@ If the number of arguments is not 1, the program displays an `z` followed by a n ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "xyz" +student@ubuntu:~/displayz/test$ go build +student@ubuntu:~/displayz/test$ ./test "xyz" z -student@ubuntu:~/[[ROOT]]/test$ ./test "bcvbvZ" +student@ubuntu:~/displayz/test$ ./test "bcvbvZ" z -student@ubuntu:~/[[ROOT]]/test$ ./test "nbv" +student@ubuntu:~/displayz/test$ ./test "nbv" z -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/displayz/test$ ./test ``` diff --git a/subjects/division_and_remainder/README.md b/subjects/division_and_remainder/README.md index 525e41717..f79940ed2 100644 --- a/subjects/division_and_remainder/README.md +++ b/subjects/division_and_remainder/README.md @@ -41,7 +41,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/division_and_remainder/test$ cargo run 9/4: division = 2, remainder = 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/division_and_remainder/test$ ``` diff --git a/subjects/divmod/README.md b/subjects/divmod/README.md index 41f92cb6e..f8f91cb0b 100644 --- a/subjects/divmod/README.md +++ b/subjects/divmod/README.md @@ -42,9 +42,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/divmod/test$ go build +student@ubuntu:~/divmod/test$ ./test 6 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/divmod/test$ ``` diff --git a/subjects/doop/README.md b/subjects/doop/README.md index a5b619644..c1f62dd5d 100644 --- a/subjects/doop/README.md +++ b/subjects/doop/README.md @@ -17,25 +17,25 @@ The program has to handle the modulo and division operations by 0 as shown on th ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build doop.go -student@ubuntu:~/[[ROOT]]/test$ ./doop -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 + 1 | cat -e +student@ubuntu:~/doop/test$ go build doop.go +student@ubuntu:~/doop/test$ ./doop +student@ubuntu:~/doop/test$ ./doop 1 + 1 | cat -e 2$ -student@ubuntu:~/[[ROOT]]/test$ ./doop hello + 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 p 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 / 0 | cat -e +student@ubuntu:~/doop/test$ ./doop hello + 1 +student@ubuntu:~/doop/test$ ./doop 1 p 1 +student@ubuntu:~/doop/test$ ./doop 1 / 0 | cat -e No division by 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 % 0 | cat -e +student@ubuntu:~/doop/test$ ./doop 1 % 0 | cat -e No modulo by 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 + 1 +student@ubuntu:~/doop/test$ ./doop 9223372036854775807 + 1 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop -9223372036854775809 - 3 +student@ubuntu:~/doop/test$ ./doop -9223372036854775809 - 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 "*" 3 +student@ubuntu:~/doop/test$ ./doop 9223372036854775807 "*" 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" 1 +student@ubuntu:~/doop/test$ ./doop 1 "*" 1 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" -1 +student@ubuntu:~/doop/test$ ./doop 1 "*" -1 -1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/doop/test$ ``` diff --git a/subjects/doubtful/README.md b/subjects/doubtful/README.md index c8c0bb9fe..232dd432e 100644 --- a/subjects/doubtful/README.md +++ b/subjects/doubtful/README.md @@ -38,8 +38,8 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/doubtful/test$ cargo run Before changing the string: Hello After changing the string: Hello? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/doubtful/test$ ``` diff --git a/subjects/drop_the_thread/README.md b/subjects/drop_the_thread/README.md index 4e4a6583f..a30543e17 100644 --- a/subjects/drop_the_thread/README.md +++ b/subjects/drop_the_thread/README.md @@ -105,9 +105,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/drop_the_thread/test$ cargo run (true, 0, Cell { value: 1 }) (true, 1, Cell { value: 2 }) (false, 2, Cell { value: 2 }, 1) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/drop_the_thread/test$ ``` diff --git a/subjects/easy_traits/README.md b/subjects/easy_traits/README.md index 8f7c50539..5b943c781 100644 --- a/subjects/easy_traits/README.md +++ b/subjects/easy_traits/README.md @@ -42,8 +42,8 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/easy_traits/test$ cargo run hello world ["one", "two", "three"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/easy_traits/test$ ``` diff --git a/subjects/edit_distance/README.md b/subjects/edit_distance/README.md index 78321e76c..4b9c11628 100644 --- a/subjects/edit_distance/README.md +++ b/subjects/edit_distance/README.md @@ -37,7 +37,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/edit_distance/test$ cargo run It's necessary to make 2 change(s) to alignment, to get assignment -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/edit_distance/test$ ``` diff --git a/subjects/eightqueens/README.md b/subjects/eightqueens/README.md index 4fde6a328..d2e1dad79 100644 --- a/subjects/eightqueens/README.md +++ b/subjects/eightqueens/README.md @@ -9,8 +9,8 @@ Recursivity must be used to solve this problem. It should print something like this : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/eightqueens/test$ go build +student@ubuntu:~/eightqueens/test$ ./test 15863724 16837425 17468253 diff --git a/subjects/enigma/README.md b/subjects/enigma/README.md index 426254e4b..dbf608283 100644 --- a/subjects/enigma/README.md +++ b/subjects/enigma/README.md @@ -74,8 +74,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/enigma/test$ go build +student@ubuntu:~/enigma/test$ ./test 5 2 7 @@ -85,5 +85,5 @@ After using Enigma 6 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/enigma/test$ ``` diff --git a/subjects/ephemeris/README.md b/subjects/ephemeris/README.md index 6d695ad26..450726cde 100644 --- a/subjects/ephemeris/README.md +++ b/subjects/ephemeris/README.md @@ -35,7 +35,7 @@ In order to get your daily informations out of your favorite websites, you'll ha First, create a new repository named `ephemeris` and run this command line in your terminal, in the repository: ```console -student@ubuntu:~/[[ROOT]]/ephemeris$ npm install puppeteer +student@ubuntu:~/ephemeris$ npm install puppeteer ``` Then, create a new file `ephemeris.mjs` in which you will use the puppeteer module: diff --git a/subjects/error_types/README.md b/subjects/error_types/README.md index ad5ce4eb1..cc3e7a27b 100644 --- a/subjects/error_types/README.md +++ b/subjects/error_types/README.md @@ -115,12 +115,12 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/error_types/test$ cargo run Form { first_name: "Lee", last_name: "Silva", birth: 2015-09-05, sex: Male, birth_location: "Africa", password: "qwqwsa1dty_" } ["Valid first name", "Valid password"] FErr { form_values: ("first_name", ""), date: "2020-12-28 13:29:11", err: "No user name" } FErr { form_values: ("password", "dty_1"), date: "2020-12-28 13:29:11", err: "At least 8 characters" } FErr { form_values: ("password", "asdasASd(_"), date: "2020-12-28 13:29:11", err: "Combination of different ASCII character types (numbers, letters and none alphanumeric characters)" } FErr { form_values: ("password", "asdasASd123SA"), date: "2020-12-28 13:29:11", err: "Combination of different ASCII character types (numbers, letters and none alphanumeric characters)" } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/error_types/test$ ``` diff --git a/subjects/events/README.md b/subjects/events/README.md index b680e6c57..72b397219 100644 --- a/subjects/events/README.md +++ b/subjects/events/README.md @@ -110,10 +110,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/events/test$ cargo run (Bottom, 50, Go to the doctor) (Top, 30, You have 13H:38M:14S left before the registration ends) (Center, 100, Go to the doctor) (Top, 25, Enjoy your holiday) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/events/test$ ``` diff --git a/subjects/expandstr/README.md b/subjects/expandstr/README.md index af7561ac2..441c5a6a4 100644 --- a/subjects/expandstr/README.md +++ b/subjects/expandstr/README.md @@ -13,12 +13,12 @@ If the number of arguments is not 1, or if there are no word, the program displa ### Usage ```console -student@ubuntu:~/[[ROOT]]/expandstr$ go build -student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e +student@ubuntu:~/expandstr$ go build +student@ubuntu:~/expandstr$ ./expandstr "you see it's easy to display the same thing" | cat -e you see it's easy to display the same thing$ -student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " only it's harder " | cat -e +student@ubuntu:~/expandstr$ ./expandstr " only it's harder " | cat -e only it's harder$ -student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e -student@ubuntu:~/[[ROOT]]/expandstr$ ./expandstr -student@ubuntu:~/[[ROOT]]/expandstr$ +student@ubuntu:~/expandstr$ ./expandstr " how funny it is" "did you hear, Mathilde ?" | cat -e +student@ubuntu:~/expandstr$ ./expandstr +student@ubuntu:~/expandstr$ ``` diff --git a/subjects/explain/README.md b/subjects/explain/README.md index edabcd4f2..2c3d4cd7e 100644 --- a/subjects/explain/README.md +++ b/subjects/explain/README.md @@ -18,14 +18,14 @@ Write an `explain.sh` file that: ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ ./explain.sh | cat -e +student@ubuntu:~/explain/test$ ./explain.sh | cat -e FirstNameOfWitness LastNameOfWitness$ 123456$ Red Ferrari$ FirstNameOfSuspect1 LastNameOfSuspect1$ FirstNameOfSuspect2 LastNameOfSuspect2$ FirstNameOfSuspect3 LastNameOfSuspect3$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/explain/test$ ``` ### Hint diff --git a/subjects/fib/README.md b/subjects/fib/README.md index 1130492fe..1459c7dae 100644 --- a/subjects/fib/README.md +++ b/subjects/fib/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/fib/test$ go build +student@ubuntu:~/fib/test$ ./test 0 1 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fib/test$ ``` diff --git a/subjects/fibonacci/README.md b/subjects/fibonacci/README.md index 6b7b298e6..8ffdf5b1e 100644 --- a/subjects/fibonacci/README.md +++ b/subjects/fibonacci/README.md @@ -43,8 +43,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/fibonacci/test$ go build +student@ubuntu:~/fibonacci/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fibonacci/test$ ``` diff --git a/subjects/fibonacci2/README.md b/subjects/fibonacci2/README.md index 530eb083e..9de5584ad 100644 --- a/subjects/fibonacci2/README.md +++ b/subjects/fibonacci2/README.md @@ -39,10 +39,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/fibonacci2/test$ cargo run The element in the position 2 in fibonacci series is 1 The element in the position 4 in fibonacci series is 3 The element in the position 22 in fibonacci series is 17711 The element in the position 20 in fibonacci series is 6765 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fibonacci2/test$ ``` diff --git a/subjects/filter_table/README.md b/subjects/filter_table/README.md index 64bfdbc6a..0e6e7297e 100644 --- a/subjects/filter_table/README.md +++ b/subjects/filter_table/README.md @@ -82,8 +82,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/filter_table/test$ cargo run Some(Table { headers: ["Name"], body: [["Adam"], ["Adamaris"], ["Ackerley"]] }) Some(Table { headers: ["Name", "Last Name", "ID Number"], body: [["Adam", "Philips", "123456789"], ["Ackerley", "Philips", "123456789"]] }) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/filter_table/test$ ``` diff --git a/subjects/find_factorial/README.md b/subjects/find_factorial/README.md index c639ab8e5..4a84d51cd 100644 --- a/subjects/find_factorial/README.md +++ b/subjects/find_factorial/README.md @@ -36,11 +36,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/find_factorial/test$ cargo run The factorial of 0 = 1 The factorial of 1 = 1 The factorial of 5 = 120 The factorial of 10 = 3628800 The factorial of 19 = 121645100408832000 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/find_factorial/test$ ``` diff --git a/subjects/findnextprime/README.md b/subjects/findnextprime/README.md index dcf967f88..4975c3476 100644 --- a/subjects/findnextprime/README.md +++ b/subjects/findnextprime/README.md @@ -37,9 +37,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/findnextprime/test$ go build +student@ubuntu:~/findnextprime/test$ ./test 5 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/findnextprime/test$ ``` diff --git a/subjects/firstrune/README.md b/subjects/firstrune/README.md index 8373c2bd0..7c84dc64d 100644 --- a/subjects/firstrune/README.md +++ b/subjects/firstrune/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/firstrune/test$ go build +student@ubuntu:~/firstrune/test$ ./test HSO -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/firstrune/test$ ``` diff --git a/subjects/firstword/README.md b/subjects/firstword/README.md index 7bc1ab8dc..a1513de56 100644 --- a/subjects/firstword/README.md +++ b/subjects/firstword/README.md @@ -13,12 +13,12 @@ Write a program that takes an argument and displays its first word, followed by ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" +student@ubuntu:~/firstword/test$ go build +student@ubuntu:~/firstword/test$ ./test "hello there" hello -student@ubuntu:~/[[ROOT]]/test$ ./test "hello ......... bye" +student@ubuntu:~/firstword/test$ ./test "hello ......... bye" hello -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ ./test "hello" "there" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/firstword/test$ ./test +student@ubuntu:~/firstword/test$ ./test "hello" "there" +student@ubuntu:~/firstword/test$ ``` diff --git a/subjects/flags/README.md b/subjects/flags/README.md index d703c8e21..8ad558f8f 100644 --- a/subjects/flags/README.md +++ b/subjects/flags/README.md @@ -13,37 +13,37 @@ This program should : Example of output : ```console -student@ubuntu:~/[[ROOT]]/flags$ go build -student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 --order asdad +student@ubuntu:~/flags$ go build +student@ubuntu:~/flags$ ./flags --insert=4321 --order asdad 1234aadds -student@ubuntu:~/[[ROOT]]/flags$ ./flags --insert=4321 asdad +student@ubuntu:~/flags$ ./flags --insert=4321 asdad asdad4321 -student@ubuntu:~/[[ROOT]]/flags$ ./flags asdad +student@ubuntu:~/flags$ ./flags asdad asdad -student@ubuntu:~/[[ROOT]]/flags$ ./flags --order 43a21 +student@ubuntu:~/flags$ ./flags --order 43a21 1234a -student@ubuntu:~/[[ROOT]]/flags$ ./flags +student@ubuntu:~/flags$ ./flags --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/[[ROOT]]/flags$ -student@ubuntu:~/[[ROOT]]/flags$ ./flags -h +student@ubuntu:~/flags$ +student@ubuntu:~/flags$ ./flags -h --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/[[ROOT]]/flags$ -student@ubuntu:~/[[ROOT]]/flags$ ./flags --help +student@ubuntu:~/flags$ +student@ubuntu:~/flags$ ./flags --help --insert -i This flag inserts the string into the string passed as argument. --order -o This flag will behave like a boolean, if it is called it will order the argument. -student@ubuntu:~/[[ROOT]]/flags$ +student@ubuntu:~/flags$ ``` diff --git a/subjects/flat_tree/README.md b/subjects/flat_tree/README.md index e0fcd7308..5bb237796 100644 --- a/subjects/flat_tree/README.md +++ b/subjects/flat_tree/README.md @@ -37,8 +37,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/flat_tree/test$ cargo run [0, 9, 30, 34] ["Horses", "Slow", "kill", "will"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/flat_tree/test$ ``` diff --git a/subjects/foldint/README.md b/subjects/foldint/README.md index 3c7a065e7..e9ab2439a 100644 --- a/subjects/foldint/README.md +++ b/subjects/foldint/README.md @@ -38,8 +38,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/foldint/test$ go build +student@ubuntu:~/foldint/test$ ./test 99 558 87 @@ -47,5 +47,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 93 0 93 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/foldint/test$ ``` diff --git a/subjects/foreach/README.md b/subjects/foreach/README.md index 9d868445f..141d39135 100644 --- a/subjects/foreach/README.md +++ b/subjects/foreach/README.md @@ -30,8 +30,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/foreach/test$ go build +student@ubuntu:~/foreach/test$ ./test 123456 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/foreach/test$ ``` diff --git a/subjects/fprime/README.md b/subjects/fprime/README.md index 406d03253..3ba40f0aa 100644 --- a/subjects/fprime/README.md +++ b/subjects/fprime/README.md @@ -11,19 +11,19 @@ Write a program that takes a positive `int` and displays its prime factors, foll ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 225225 +student@ubuntu:~/fprime/test$ go build +student@ubuntu:~/fprime/test$ ./test 225225 3*3*5*5*7*11*13 -student@ubuntu:~/[[ROOT]]/test$ ./test 8333325 +student@ubuntu:~/fprime/test$ ./test 8333325 3*3*5*5*7*11*13*37 -student@ubuntu:~/[[ROOT]]/test$ ./test 9539 +student@ubuntu:~/fprime/test$ ./test 9539 9539 -student@ubuntu:~/[[ROOT]]/test$ ./test 804577 +student@ubuntu:~/fprime/test$ ./test 804577 804577 -student@ubuntu:~/[[ROOT]]/test$ ./test 42 +student@ubuntu:~/fprime/test$ ./test 42 2*3*7 -student@ubuntu:~/[[ROOT]]/test$ ./test a -student@ubuntu:~/[[ROOT]]/test$ ./test 0 -student@ubuntu:~/[[ROOT]]/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/fprime/test$ ./test a +student@ubuntu:~/fprime/test$ ./test 0 +student@ubuntu:~/fprime/test$ ./test 1 +student@ubuntu:~/fprime/test$ ``` diff --git a/subjects/game23/README.md b/subjects/game23/README.md index 23c7cba4b..83678b7bc 100644 --- a/subjects/game23/README.md +++ b/subjects/game23/README.md @@ -36,10 +36,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/game23/test$ go build +student@ubuntu:~/game23/test$ ./test 1 -1 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/game23/test$ ``` diff --git a/subjects/gcd/README.md b/subjects/gcd/README.md index d725f79c8..e21166fe0 100644 --- a/subjects/gcd/README.md +++ b/subjects/gcd/README.md @@ -13,16 +13,16 @@ All arguments tested will be positive `int` values. ### Usage ```console -student@ubuntu:~/[[ROOT]]/gcd$ go build -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 10 | cat -e +student@ubuntu:~/gcd$ go build +student@ubuntu:~/gcd$ ./gcd 42 10 | cat -e 2$ -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 42 12 +student@ubuntu:~/gcd$ ./gcd 42 12 6 -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 14 77 +student@ubuntu:~/gcd$ ./gcd 14 77 7 -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 17 3 +student@ubuntu:~/gcd$ ./gcd 17 3 1 -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd -student@ubuntu:~/[[ROOT]]/gcd$ ./gcd 50 12 4 -student@ubuntu:~/[[ROOT]]/gcd$ +student@ubuntu:~/gcd$ ./gcd +student@ubuntu:~/gcd$ ./gcd 50 12 4 +student@ubuntu:~/gcd$ ``` diff --git a/subjects/generics/README.md b/subjects/generics/README.md index e7aa9fd7a..6e7b443dc 100644 --- a/subjects/generics/README.md +++ b/subjects/generics/README.md @@ -27,8 +27,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/generics/test$ cargo run Hello, world! 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/generics/test$ ``` diff --git a/subjects/get_products/README.md b/subjects/get_products/README.md index 730bbd1f6..79ba98bf1 100644 --- a/subjects/get_products/README.md +++ b/subjects/get_products/README.md @@ -40,7 +40,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/get_products/test$ cargo run [84, 12, 28, 21] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/get_products/test$ ``` diff --git a/subjects/go-reloaded/README.md b/subjects/go-reloaded/README.md index 6624059c1..95b016af5 100644 --- a/subjects/go-reloaded/README.md +++ b/subjects/go-reloaded/README.md @@ -70,8 +70,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 12345 12345 0 @@ -80,7 +80,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test -1234 0 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -129,10 +129,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 64 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -183,12 +183,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 012345678, 012345679, ..., 123456789 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -253,14 +253,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -297,29 +297,29 @@ The program has to handle the modulo and division operations by 0 as shown on th ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build doop.go -student@ubuntu:~/[[ROOT]]/test$ ./doop -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 + 1 | cat -e +student@ubuntu:~/go-reloaded/test$ go build doop.go +student@ubuntu:~/go-reloaded/test$ ./doop +student@ubuntu:~/go-reloaded/test$ ./doop 1 + 1 | cat -e 2$ -student@ubuntu:~/[[ROOT]]/test$ ./doop hello + 1 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop hello + 1 | cat -e 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 p 1 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop 1 p 1 | cat -e 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 / 0 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop 1 / 0 | cat -e No division by 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 % 0 | cat -e +student@ubuntu:~/go-reloaded/test$ ./doop 1 % 0 | cat -e No modulo by 0$ -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 + 1 +student@ubuntu:~/go-reloaded/test$ ./doop 9223372036854775807 + 1 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop -9223372036854775809 - 3 +student@ubuntu:~/go-reloaded/test$ ./doop -9223372036854775809 - 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 9223372036854775807 "*" 3 +student@ubuntu:~/go-reloaded/test$ ./doop 9223372036854775807 "*" 3 0 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" 1 +student@ubuntu:~/go-reloaded/test$ ./doop 1 "*" 1 1 -student@ubuntu:~/[[ROOT]]/test$ ./doop 1 "*" -1 +student@ubuntu:~/go-reloaded/test$ ./doop 1 "*" -1 -1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -379,14 +379,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 125 125 125 125 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -432,10 +432,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test [Hello how are you?] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -481,10 +481,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test [Hello how are you?] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -533,10 +533,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 43 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -561,20 +561,20 @@ Write a **program** that checks the arguments for vowels. Example of output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "Hello World" | cat -e +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "Hello World" | cat -e Hollo Werld$ -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "HEllO World" "problem solved" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "HEllO World" "problem solved" Hello Werld problom sOlvEd -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "str" "shh" "psst" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "str" "shh" "psst" str shh psst -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "happy thoughts" "good luck" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "happy thoughts" "good luck" huppy thooghts guod lack -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "aEi" "Ou" +student@ubuntu:~/go-reloaded/test$ ./rotatevowels "aEi" "Ou" uOi Ea -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels +student@ubuntu:~/go-reloaded/test$ ./rotatevowels -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -622,10 +622,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -664,19 +664,19 @@ Write a program that behaves like a simplified `cat` command. - The program must be submitted inside a folder named `cat`. ```console -student@ubuntu:~/[[ROOT]]/cat$ go build -student@ubuntu:~/[[ROOT]]/cat$ ./cat abc +student@ubuntu:~/go-reloaded/cat$ go build +student@ubuntu:~/go-reloaded/cat$ ./cat abc ERROR: abc: No such file or directory -student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt +student@ubuntu:~/go-reloaded/cat$ ./cat quest8.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing -student@ubuntu:~/[[ROOT]]/cat$ ./cat +student@ubuntu:~/go-reloaded/cat$ ./cat Hello Hello ^C -student@ubuntu:~/[[ROOT]]/cat$ ./cat quest8.txt quest8T.txt +student@ubuntu:~/go-reloaded/cat$ ./cat quest8.txt quest8T.txt "Programming is a skill best acquired by pratice and example rather than from books" by Alan Turing "Alan Mathison Turing was an English mathematician, computer scientist, logician, cryptanalyst. Turing was highly influential in the development of theoretical computer science, providing a formalisation of the concepts of algorithm and computation with the Turing machine, which can be considered a model of a general-purpose computer. Turing is widely considered to be the father of theoretical computer science and artificial intelligence." -student@ubuntu:~/[[ROOT]]/cat$ +student@ubuntu:~/go-reloaded/cat$ ``` --- @@ -751,10 +751,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 3 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -834,11 +834,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -915,10 +915,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1009,8 +1009,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test ----normal state---- 1 -> ------answer----- @@ -1020,7 +1020,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1066,13 +1066,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 3 4 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1115,13 +1115,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test 4 1 7 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` --- @@ -1171,8 +1171,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/go-reloaded/test$ go build +student@ubuntu:~/go-reloaded/test$ ./test Before delete: 1 4 @@ -1182,5 +1182,5 @@ After delete: 1 5 7 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/go-reloaded/test$ ``` diff --git a/subjects/groceries/README.md b/subjects/groceries/README.md index f765550e3..fb94e1161 100644 --- a/subjects/groceries/README.md +++ b/subjects/groceries/README.md @@ -47,8 +47,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/groceries/test$ cargo run The groceries list now = ["yogurt", "panetone", "bread", "cheese", "nuts"] The second element of the grocery list is "panetone" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/groceries/test$ ``` diff --git a/subjects/grouping/README.md b/subjects/grouping/README.md index c920a2378..14f68ee0e 100644 --- a/subjects/grouping/README.md +++ b/subjects/grouping/README.md @@ -13,12 +13,12 @@ If the number of arguments is different from 2, if the regular expression is not ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(a)" "I'm heavy, jumpsuit is on steady, Lighter when I'm lower, higher when I'm heavy" +student@ubuntu:~/grouping/test$ go build +student@ubuntu:~/grouping/test$ ./regbrackets "(a)" "I'm heavy, jumpsuit is on steady, Lighter when I'm lower, higher when I'm heavy" 1: heavy 2: steady 3: heavy -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(e|n)" "I currently have 4 windows opened up… and I don’t know why." +student@ubuntu:~/grouping/test$ ./regbrackets "(e|n)" "I currently have 4 windows opened up… and I don’t know why." 1: currently 2: currently 3: have @@ -28,10 +28,10 @@ student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(e|n)" "I currently have 4 window 7: and 8: don’t 9: know -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(hi)" "He swore he just saw his sushi move." +student@ubuntu:~/grouping/test$ ./regbrackets "(hi)" "He swore he just saw his sushi move." 1: his 2: sushi -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "(s)" "" -student@ubuntu:~/[[ROOT]]/test$ ./regbrackets "i" "Something in the air" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/grouping/test$ ./regbrackets "(s)" "" +student@ubuntu:~/grouping/test$ ./regbrackets "i" "Something in the air" +student@ubuntu:~/grouping/test$ ``` diff --git a/subjects/halfcontest/README.md b/subjects/halfcontest/README.md index c51b5f9f4..5ef035402 100644 --- a/subjects/halfcontest/README.md +++ b/subjects/halfcontest/README.md @@ -41,10 +41,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/halfcontest/test$ go build +student@ubuntu:~/halfcontest/test$ ./test 224 1059 1002 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/halfcontest/test$ ``` diff --git a/subjects/handling/README.md b/subjects/handling/README.md index 131cece38..4340b970c 100644 --- a/subjects/handling/README.md +++ b/subjects/handling/README.md @@ -49,7 +49,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/handling/test$ cargo run content to be written -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/handling/test$ ``` diff --git a/subjects/hashing/README.md b/subjects/hashing/README.md index 7bcb31063..3cd729a29 100644 --- a/subjects/hashing/README.md +++ b/subjects/hashing/README.md @@ -47,9 +47,9 @@ fn main() { And its output; ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/hashing/test$ cargo run mean 3.857142857142857 median 4 mode 5 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/hashing/test$ ``` diff --git a/subjects/hello-there/README.md b/subjects/hello-there/README.md index 20d6e3cb2..9b7272100 100644 --- a/subjects/hello-there/README.md +++ b/subjects/hello-there/README.md @@ -107,7 +107,7 @@ executed. ### Instructions Once you have installed and configured the necessary tools, -create a `git` repository named `[[ROOT]]` with a `hello-there.js` +create a `git` repository named `hello-there` with a `hello-there.js` JS file that is a program that displays the exact text `Hello There !`, any `Number` and a `Boolean`. diff --git a/subjects/hello/README.md b/subjects/hello/README.md index 6fc55d07f..2b44095ed 100644 --- a/subjects/hello/README.md +++ b/subjects/hello/README.md @@ -7,8 +7,8 @@ Write a program that displays "Hello World!" followed by a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/hello/test$ go build +student@ubuntu:~/hello/test$ ./test Hello World! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/hello/test$ ``` diff --git a/subjects/hello_rust/README.md b/subjects/hello_rust/README.md index 5201edaae..fd6f17817 100644 --- a/subjects/hello_rust/README.md +++ b/subjects/hello_rust/README.md @@ -10,7 +10,7 @@ Make sure those rules are followed consistenly during the whole piscine. #### 1- get-ready -Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `[[ROOT]]`. +Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `hello_rust`. This repository will be the folder where all the exercices must be uploaded. @@ -18,7 +18,7 @@ Once created, clone that repository on your desktop. If your username was `choumi` this is the command that will need to be used : -`git clone git@git.[[DOMAIN]]:choumi/[[ROOT]].git` +`git clone git@git.[[DOMAIN]]:choumi/hello_rust.git` This command needs to be adapted with **your own username**. diff --git a/subjects/hiddenp/README.md b/subjects/hiddenp/README.md index f17821e4c..b3dbc848b 100644 --- a/subjects/hiddenp/README.md +++ b/subjects/hiddenp/README.md @@ -13,15 +13,15 @@ If the number of arguments is different from 2, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/hiddenp$ go build -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e +student@ubuntu:~/hiddenp$ go build +student@ubuntu:~/hiddenp$ ./hiddenp "fgex.;" "tyf34gdgf;'ektufjhgdgex.;.;rtjynur6" | cat -e 1$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e +student@ubuntu:~/hiddenp$ ./hiddenp "abc" "2altrb53c.sse" | cat -e 1$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "abc" "btarc" | cat -e +student@ubuntu:~/hiddenp$ ./hiddenp "abc" "btarc" | cat -e 0$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp "DD" "DABC" | cat -e +student@ubuntu:~/hiddenp$ ./hiddenp "DD" "DABC" | cat -e 0$ -student@ubuntu:~/[[ROOT]]/hiddenp$ ./hiddenp -student@ubuntu:~/[[ROOT]]/hiddenp$ +student@ubuntu:~/hiddenp$ ./hiddenp +student@ubuntu:~/hiddenp$ ``` diff --git a/subjects/highest/README.md b/subjects/highest/README.md index 80fdd8677..1b85b9e87 100644 --- a/subjects/highest/README.md +++ b/subjects/highest/README.md @@ -55,10 +55,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/highest/test$ cargo run [30, 500, 20, 70] Some(500) Some(70) [500, 70, 30] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/highest/test$ ``` diff --git a/subjects/how-2-js/README.md b/subjects/how-2-js/README.md index 7d3eab848..a30ae1aff 100644 --- a/subjects/how-2-js/README.md +++ b/subjects/how-2-js/README.md @@ -40,6 +40,6 @@ and you should see your hello world. Great ! you are all set, if you want to re-execute your script, just refresh. -You now just have to create a repository named `[[ROOT]]`, +You now just have to create a repository named `how-2-js`, which will hold all your solutions for this piscine and just add your 2 generated files to it, we will start slow for now... 🐢 diff --git a/subjects/how_many_references/README.md b/subjects/how_many_references/README.md index 5c9ed6af6..e0bec497c 100644 --- a/subjects/how_many_references/README.md +++ b/subjects/how_many_references/README.md @@ -69,12 +69,12 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/how_many_references/test$ cargo run a: 4 b: 2 c: 2 a: 1 b: 2 c: 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/how_many_references/test$ ``` diff --git a/subjects/index/README.md b/subjects/index/README.md index d1a217604..ceb22bf6c 100644 --- a/subjects/index/README.md +++ b/subjects/index/README.md @@ -34,10 +34,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/index/test$ go build +student@ubuntu:~/index/test$ ./test 2 1 -1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/index/test$ ``` diff --git a/subjects/insertion_sort/README.md b/subjects/insertion_sort/README.md index d94c2e097..db66ecb42 100644 --- a/subjects/insertion_sort/README.md +++ b/subjects/insertion_sort/README.md @@ -49,8 +49,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/insertion_sort/test$ cargo run [3, 5, 7, 2, 1, 6, 8, 4] [1, 2, 3, 4, 5, 6, 7, 8] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/insertion_sort/test$ ``` diff --git a/subjects/inter/README.md b/subjects/inter/README.md index e5a1ed02a..5513637b4 100644 --- a/subjects/inter/README.md +++ b/subjects/inter/README.md @@ -11,10 +11,10 @@ Write a program that takes two `string` and displays, without doubles, the chara ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" +student@ubuntu:~/inter/test$ go build +student@ubuntu:~/inter/test$ ./test "padinton" "paqefwtdjetyiytjneytjoeyjnejeyj" padinto -student@ubuntu:~/[[ROOT]]/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd +student@ubuntu:~/inter/test$ ./test ddf6vewg64f twthgdwthdwfteewhrtag6h4ffdhsd df6ewg4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/inter/test$ ``` diff --git a/subjects/interestingnumber/README.md b/subjects/interestingnumber/README.md index d8b232156..84708ded6 100644 --- a/subjects/interestingnumber/README.md +++ b/subjects/interestingnumber/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/interestingnumber/test$ go build +student@ubuntu:~/interestingnumber/test$ ./test 7 7 16 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/interestingnumber/test$ ``` diff --git a/subjects/introduction/README.md b/subjects/introduction/README.md index 2b8b27851..cd26eaff0 100644 --- a/subjects/introduction/README.md +++ b/subjects/introduction/README.md @@ -4,7 +4,7 @@ #### 1- get-ready -Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `[[ROOT]]`. +Create in your [Gitea](https://git.[[DOMAIN]]) account the repository named `piscine-go`. This repository will be the folder where all the exercices must be uploaded. @@ -12,7 +12,7 @@ Once created, clone that repository on your desktop. If your username was `choumi` this is the command that will need to be used : -`git clone git@git.[[DOMAIN]]:choumi/[[ROOT]].git` +`git clone git@git.[[DOMAIN]]:choumi/piscine-go.git` This command needs to be adapted with **your own username**. @@ -47,9 +47,9 @@ Where `choumi` is your username If the username is `choumi` : ```console -user@host:~/[[ROOT]]$ ./hello.sh +user@host:~/piscine-go$ ./hello.sh Hello choumi! -user@host:~/[[ROOT]]$ +user@host:~/piscine-go$ ``` #### 3- go-say-hello diff --git a/subjects/inv_pyramid/README.md b/subjects/inv_pyramid/README.md index c51052863..e73d705e4 100644 --- a/subjects/inv_pyramid/README.md +++ b/subjects/inv_pyramid/README.md @@ -58,7 +58,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/inv_pyramid/test$ cargo run " #" " a" " aa" @@ -87,5 +87,5 @@ student@ubuntu:~/[[ROOT]]/test$ cargo run " &&&" " &&" " &" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/inv_pyramid/test$ ``` diff --git a/subjects/isalpha/README.md b/subjects/isalpha/README.md index ca8f8e270..690c067fc 100644 --- a/subjects/isalpha/README.md +++ b/subjects/isalpha/README.md @@ -36,11 +36,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isalpha/test$ go build +student@ubuntu:~/isalpha/test$ ./test false true false true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isalpha/test$ ``` diff --git a/subjects/islower/README.md b/subjects/islower/README.md index 30964010f..f8db21254 100644 --- a/subjects/islower/README.md +++ b/subjects/islower/README.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/islower/test$ go build +student@ubuntu:~/islower/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/islower/test$ ``` diff --git a/subjects/isnegative/README.md b/subjects/isnegative/README.md index 661bd32c4..4fd58bf8d 100644 --- a/subjects/isnegative/README.md +++ b/subjects/isnegative/README.md @@ -31,10 +31,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isnegative/test$ go build +student@ubuntu:~/isnegative/test$ ./test F F T -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isnegative/test$ ``` diff --git a/subjects/isnumeric/README.md b/subjects/isnumeric/README.md index 083714cbf..8dfe0dd88 100644 --- a/subjects/isnumeric/README.md +++ b/subjects/isnumeric/README.md @@ -33,9 +33,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isnumeric/test$ go build +student@ubuntu:~/isnumeric/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isnumeric/test$ ``` diff --git a/subjects/isprime/README.md b/subjects/isprime/README.md index a97c42653..2af2e4939 100644 --- a/subjects/isprime/README.md +++ b/subjects/isprime/README.md @@ -37,9 +37,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isprime/test$ go build +student@ubuntu:~/isprime/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isprime/test$ ``` diff --git a/subjects/isprintable/README.md b/subjects/isprintable/README.md index a56269635..72a57b4e9 100644 --- a/subjects/isprintable/README.md +++ b/subjects/isprintable/README.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isprintable/test$ go build +student@ubuntu:~/isprintable/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isprintable/test$ ``` diff --git a/subjects/issorted/README.md b/subjects/issorted/README.md index e1287233d..68bee50bf 100644 --- a/subjects/issorted/README.md +++ b/subjects/issorted/README.md @@ -43,9 +43,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/issorted/test$ go build +student@ubuntu:~/issorted/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/issorted/test$ ``` diff --git a/subjects/isupper/README.md b/subjects/isupper/README.md index 22d009a6b..6072c5111 100644 --- a/subjects/isupper/README.md +++ b/subjects/isupper/README.md @@ -34,9 +34,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/isupper/test$ go build +student@ubuntu:~/isupper/test$ ./test true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/isupper/test$ ``` diff --git a/subjects/iterativefactorial/README.md b/subjects/iterativefactorial/README.md index 2d58f5c54..5de8e08df 100644 --- a/subjects/iterativefactorial/README.md +++ b/subjects/iterativefactorial/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/iterativefactorial/test$ go build +student@ubuntu:~/iterativefactorial/test$ ./test 24 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/iterativefactorial/test$ ``` diff --git a/subjects/iterativepower/README.md b/subjects/iterativepower/README.md index 026180654..c72edfef8 100644 --- a/subjects/iterativepower/README.md +++ b/subjects/iterativepower/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/iterativepower/test$ go build +student@ubuntu:~/iterativepower/test$ ./test 64 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/iterativepower/test$ ``` diff --git a/subjects/iterators/README.md b/subjects/iterators/README.md index c8815824b..b8bdbeceb 100644 --- a/subjects/iterators/README.md +++ b/subjects/iterators/README.md @@ -59,7 +59,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/iterators/test$ cargo run Some((6, 5, 120)) Some((8, 7, 720)) Some((10, 9, 5040)) @@ -67,5 +67,5 @@ Some((10, 9, 5040)) Some((18, 19, 6402373705728000)) Some((20, 21, 121645100408832000)) Some((22, 23, 2432902008176640000)) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/iterators/test$ ``` diff --git a/subjects/join/README.md b/subjects/join/README.md index e87f4d06b..fd839ccce 100644 --- a/subjects/join/README.md +++ b/subjects/join/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/join/test$ go build +student@ubuntu:~/join/test$ ./test Hello!: How: are: you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/join/test$ ``` diff --git a/subjects/lalgebra_scalar/README.md b/subjects/lalgebra_scalar/README.md index 9f00bb9ca..52939a2c4 100644 --- a/subjects/lalgebra_scalar/README.md +++ b/subjects/lalgebra_scalar/README.md @@ -42,10 +42,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lalgebra_scalar/test$ cargo run 0.0 0 1.0 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lalgebra_scalar/test$ ``` diff --git a/subjects/lalgebra_vector/README.md b/subjects/lalgebra_vector/README.md index bf153eb0f..13cdeea13 100644 --- a/subjects/lalgebra_vector/README.md +++ b/subjects/lalgebra_vector/README.md @@ -50,8 +50,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lalgebra_vector/test$ cargo run Some(3) Some(Vector([5, 1, -6])) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lalgebra_vector/test$ ``` diff --git a/subjects/lastrune/README.md b/subjects/lastrune/README.md index 745066581..59b4baa76 100644 --- a/subjects/lastrune/README.md +++ b/subjects/lastrune/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/lastrune/test$ go build +student@ubuntu:~/lastrune/test$ ./test !!! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lastrune/test$ ``` diff --git a/subjects/lastup/README.md b/subjects/lastup/README.md index 8c6eb910d..f01fc9513 100644 --- a/subjects/lastup/README.md +++ b/subjects/lastup/README.md @@ -28,9 +28,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lastup/test$ cargo run joE iS missinG jilL iS leavinG A hellO therE! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lastup/test$ ``` diff --git a/subjects/lastword/README.md b/subjects/lastword/README.md index 5525dec67..764150e5e 100644 --- a/subjects/lastword/README.md +++ b/subjects/lastword/README.md @@ -13,14 +13,14 @@ Write a program that takes a `string` and displays its last word, followed by a ### Usage ```console -student@ubuntu:~/[[ROOT]]/lastword$ go build -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "FOR PONY" | cat -e +student@ubuntu:~/lastword$ go build +student@ubuntu:~/lastword$ ./lastword "FOR PONY" | cat -e PONY$ -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e +student@ubuntu:~/lastword$ ./lastword "this ... is sparta, then again, maybe not" | cat -e not$ -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " " -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword "a" "b" -student@ubuntu:~/[[ROOT]]/lastword$ ./lastword " lorem,ipsum " | cat -e +student@ubuntu:~/lastword$ ./lastword " " +student@ubuntu:~/lastword$ ./lastword "a" "b" +student@ubuntu:~/lastword$ ./lastword " lorem,ipsum " | cat -e lorem,ipsum$ -student@ubuntu:~/[[ROOT]]/lastword$ +student@ubuntu:~/lastword$ ``` diff --git a/subjects/lcm/README.md b/subjects/lcm/README.md index c6b530648..e9091ebaa 100644 --- a/subjects/lcm/README.md +++ b/subjects/lcm/README.md @@ -30,9 +30,9 @@ func main() { ### Output ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/lcm/test$ go build +student@ubuntu:~/lcm/test$ ./test 14 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lcm/test$ ``` diff --git a/subjects/lifetimes/README.md b/subjects/lifetimes/README.md index c6e04114f..2e3661666 100644 --- a/subjects/lifetimes/README.md +++ b/subjects/lifetimes/README.md @@ -47,7 +47,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lifetimes/test$ cargo run Person = Person { name: "Leo", age: 0 } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lifetimes/test$ ``` diff --git a/subjects/listat/README.md b/subjects/listat/README.md index cbd6a281d..d5898523a 100644 --- a/subjects/listat/README.md +++ b/subjects/listat/README.md @@ -49,10 +49,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listat/test$ go build +student@ubuntu:~/listat/test$ ./test 1 how are -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listat/test$ ``` diff --git a/subjects/listclear/README.md b/subjects/listclear/README.md index e62b3e0de..491ea2804 100644 --- a/subjects/listclear/README.md +++ b/subjects/listclear/README.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listclear/test$ go build +student@ubuntu:~/listclear/test$ ./test ------list------ I -> 1 -> something -> 2 -> ------updated list------ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listclear/test$ ``` diff --git a/subjects/listfind/README.md b/subjects/listfind/README.md index 6d3982044..92ae58dba 100644 --- a/subjects/listfind/README.md +++ b/subjects/listfind/README.md @@ -58,11 +58,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listfind/test$ go build +student@ubuntu:~/listfind/test$ ./test 0xc42000a0a0 hello2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listfind/test$ ``` ### Note diff --git a/subjects/listforeach/README.md b/subjects/listforeach/README.md index 7c6ef7086..a7cdde8e2 100644 --- a/subjects/listforeach/README.md +++ b/subjects/listforeach/README.md @@ -76,11 +76,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listforeach/test$ go build +student@ubuntu:~/listforeach/test$ ./test 12 22 32 52 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listforeach/test$ ``` diff --git a/subjects/listforeachif/README.md b/subjects/listforeachif/README.md index d2fe3f25d..ecde00d83 100644 --- a/subjects/listforeachif/README.md +++ b/subjects/listforeachif/README.md @@ -117,8 +117,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listforeachif/test$ go build +student@ubuntu:~/listforeachif/test$ ./test 1->hello->3->there->23->!->54->nil --------function applied-------- 1 @@ -128,6 +128,6 @@ student@ubuntu:~/[[ROOT]]/test$ ./test --------function applied-------- 1->2->3->2->23->2->54->nil -student@ubuntu:~/[[ROOT]]/test$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listforeachif/test$ +student@ubuntu:~/listforeachif/test$ ``` diff --git a/subjects/listlast/README.md b/subjects/listlast/README.md index 3c72f13b3..c7f113168 100644 --- a/subjects/listlast/README.md +++ b/subjects/listlast/README.md @@ -51,9 +51,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listlast/test$ go build +student@ubuntu:~/listlast/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listlast/test$ ``` diff --git a/subjects/listmerge/README.md b/subjects/listmerge/README.md index 69af3a389..e3c6fad51 100644 --- a/subjects/listmerge/README.md +++ b/subjects/listmerge/README.md @@ -73,13 +73,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listmerge/test$ go build +student@ubuntu:~/listmerge/test$ ./test -----first List------ a -> b -> c -> d -> -----second List------ e -> f -> g -> h -> -----Merged List----- a -> b -> c -> d -> e -> f -> g -> h -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listmerge/test$ ``` diff --git a/subjects/listpushback/README.md b/subjects/listpushback/README.md index 4902b1010..c04429703 100644 --- a/subjects/listpushback/README.md +++ b/subjects/listpushback/README.md @@ -52,10 +52,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listpushback/test$ go build +student@ubuntu:~/listpushback/test$ ./test Hello man how are you -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushback/test$ ``` diff --git a/subjects/listpushfront/README.md b/subjects/listpushfront/README.md index 5ae98e006..52f591d13 100644 --- a/subjects/listpushfront/README.md +++ b/subjects/listpushfront/README.md @@ -55,8 +55,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listpushfront/test$ go build +student@ubuntu:~/listpushfront/test$ ./test how are you man Hello -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushfront/test$ ``` diff --git a/subjects/listpushpara/README.md b/subjects/listpushpara/README.md index 5ba32e482..5886cf110 100644 --- a/subjects/listpushpara/README.md +++ b/subjects/listpushpara/README.md @@ -9,12 +9,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/listpushpara/test$ go build +student@ubuntu:~/listpushpara/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushpara/test$ ``` diff --git a/subjects/listpushparams/README.md b/subjects/listpushparams/README.md index c7e500165..d46ae7a26 100644 --- a/subjects/listpushparams/README.md +++ b/subjects/listpushparams/README.md @@ -9,12 +9,12 @@ Write a program that creates a new linked list and includes each command-line ar And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./listpushparams choumi is the best cat +student@ubuntu:~/listpushparams/test$ go build +student@ubuntu:~/listpushparams/test$ ./listpushparams choumi is the best cat cat best the is choumi -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listpushparams/test$ ``` diff --git a/subjects/listremoveif/README.md b/subjects/listremoveif/README.md index 6336f898d..20e5219dd 100644 --- a/subjects/listremoveif/README.md +++ b/subjects/listremoveif/README.md @@ -80,8 +80,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listremoveif/test$ go build +student@ubuntu:~/listremoveif/test$ ./test ----normal state---- 1 -> ------answer----- @@ -91,5 +91,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 1 -> Hello -> 1 -> There -> 1 -> 1 -> How -> 1 -> are -> you -> 1 -> ------answer----- Hello -> There -> How -> are -> you -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listremoveif/test$ ``` diff --git a/subjects/listreverse/README.md b/subjects/listreverse/README.md index a64b5cc03..cf144e734 100644 --- a/subjects/listreverse/README.md +++ b/subjects/listreverse/README.md @@ -59,13 +59,13 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listreverse/test$ go build +student@ubuntu:~/listreverse/test$ ./test 4 3 2 1 Tail &{1 } Head &{4 0xc42000a140} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listreverse/test$ ``` diff --git a/subjects/listsize/README.md b/subjects/listsize/README.md index 42bef0a8b..6c386a10d 100644 --- a/subjects/listsize/README.md +++ b/subjects/listsize/README.md @@ -49,8 +49,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listsize/test$ go build +student@ubuntu:~/listsize/test$ ./test 4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listsize/test$ ``` diff --git a/subjects/listsort/README.md b/subjects/listsort/README.md index 48ea4d195..9219ed7dd 100644 --- a/subjects/listsort/README.md +++ b/subjects/listsort/README.md @@ -71,8 +71,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/listsort/test$ go build +student@ubuntu:~/listsort/test$ ./test 1 -> 2 -> 3 -> 4 -> 5 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/listsort/test$ ``` diff --git a/subjects/logic_number/README.md b/subjects/logic_number/README.md index f4cfda402..bae071ee1 100644 --- a/subjects/logic_number/README.md +++ b/subjects/logic_number/README.md @@ -51,10 +51,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/logic_number/test$ cargo run this number returns true because the number 9 obey the rules of the sequence this number returns false because the number 10 does not obey the rules of the sequence this number returns true because the number 153 obey the rules of the sequence this number returns false because the number 154 does not obey the rules of the sequence -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/logic_number/test$ ``` diff --git a/subjects/lunch_queue/README.md b/subjects/lunch_queue/README.md index 751ab2118..913b276b4 100644 --- a/subjects/lunch_queue/README.md +++ b/subjects/lunch_queue/README.md @@ -73,7 +73,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/lunch_queue/test$ cargo run Queue { node: Some(Person { name: "Alice", discount: 35, next_person: Some(Person { name: "Ana", discount: 5, next_person: Some(Person { name: "Monica", discount: 15, next_person: Some(Person { name: "Marie", discount: 20, next_person: None }) }) }) }) } Some(("Marie", 20)) Some(("Alice", 35)) @@ -81,5 +81,5 @@ None removed Some(("Marie", 20)) list Queue { node: Some(Person { name: "Alice", discount: 35, next_person: Some(Person { name: "Ana", discount: 5, next_person: Some(Person { name: "Monica", discount: 15, next_person: None }) }) }) } invert Queue { node: Some(Person { name: "Monica", discount: 15, next_person: Some(Person { name: "Ana", discount: 5, next_person: Some(Person { name: "Alice", discount: 35, next_person: None }) }) }) } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/lunch_queue/test$ ``` diff --git a/subjects/makerange/README.md b/subjects/makerange/README.md index 4e3e45946..2e60bba56 100644 --- a/subjects/makerange/README.md +++ b/subjects/makerange/README.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/makerange/test$ go build +student@ubuntu:~/makerange/test$ ./test [5 6 7 8 9] [] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/makerange/test$ ``` diff --git a/subjects/map/README.md b/subjects/map/README.md index 8ac288b6b..6492ae114 100644 --- a/subjects/map/README.md +++ b/subjects/map/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/map/test$ go build +student@ubuntu:~/map/test$ ./test [false true true false true false] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/map/test$ ``` diff --git a/subjects/matrix/README.md b/subjects/matrix/README.md index 8fde579e1..ee3cb0911 100644 --- a/subjects/matrix/README.md +++ b/subjects/matrix/README.md @@ -51,9 +51,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix/test$ cargo run Matrix([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]) Matrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) Matrix([[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix/test$ ``` diff --git a/subjects/matrix_display/README.md b/subjects/matrix_display/README.md index 2346274ba..ed8fbe318 100644 --- a/subjects/matrix_display/README.md +++ b/subjects/matrix_display/README.md @@ -38,9 +38,9 @@ fn main() { And it's output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_display/test$ cargo run (1 2 3) (4 5 6) (7 8 9) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_display/test$ ``` diff --git a/subjects/matrix_mult/README.md b/subjects/matrix_mult/README.md index a566d4f01..f390fd6d0 100644 --- a/subjects/matrix_mult/README.md +++ b/subjects/matrix_mult/README.md @@ -57,11 +57,11 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_mult/test$ cargo run [3, 8] [8, 0] Some(Matrix([[1, 0], [0, 0]])) 2 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_mult/test$ ``` diff --git a/subjects/matrix_ops/README.md b/subjects/matrix_ops/README.md index e4f9cd2f0..4c0da7245 100644 --- a/subjects/matrix_ops/README.md +++ b/subjects/matrix_ops/README.md @@ -52,10 +52,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_ops/test$ cargo run Some(Matrix([[9, 2], [10, 2]])) Some(Matrix([[-2, 2], [1, 4]])) None None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_ops/test$ ``` diff --git a/subjects/matrix_transposition/README.md b/subjects/matrix_transposition/README.md index bb214c3d1..5c384773c 100644 --- a/subjects/matrix_transposition/README.md +++ b/subjects/matrix_transposition/README.md @@ -60,8 +60,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_transposition/test$ cargo run Original matrix Matrix((1, 3), (4, 5)) Transpose matrix Matrix((1, 4), (3, 5)) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_transposition/test$ ``` diff --git a/subjects/matrix_transposition_4by3/README.md b/subjects/matrix_transposition_4by3/README.md index eaaae39e2..b72cd3ed7 100644 --- a/subjects/matrix_transposition_4by3/README.md +++ b/subjects/matrix_transposition_4by3/README.md @@ -63,8 +63,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/matrix_transposition_4by3/test$ cargo run Original matrix Matrix4by3((1, 2, 3), (4, 5, 6), (7, 8, 9), (10, 11, 12)) Transpose matrix Matrix3by4((1, 4, 7, 10), (2, 5, 8, 11), (3, 6, 9, 12)) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/matrix_transposition_4by3/test$ ``` diff --git a/subjects/max/README.md b/subjects/max/README.md index 2261fa382..4f4610265 100644 --- a/subjects/max/README.md +++ b/subjects/max/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/max/test$ go build +student@ubuntu:~/max/test$ ./test 123 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/max/test$ ``` diff --git a/subjects/merge/README.md b/subjects/merge/README.md index b2d0ba315..c9377241b 100644 --- a/subjects/merge/README.md +++ b/subjects/merge/README.md @@ -68,8 +68,8 @@ func main() { ### Output ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/merge/test$ go build +student@ubuntu:~/merge/test$ ./test [20, 2, 3, 4, 5, 6, 6, 7, 3, 5] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/merge/test$ ``` diff --git a/subjects/name_initials/README.md b/subjects/name_initials/README.md index c4e1aee49..48213cd7d 100644 --- a/subjects/name_initials/README.md +++ b/subjects/name_initials/README.md @@ -35,7 +35,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/name_initials/test$ cargo run ["H. P.", "S. E.", "J. L.", "B. O."] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/name_initials/test$ ``` diff --git a/subjects/nauuo/README.md b/subjects/nauuo/README.md index 577a2ace2..95c85e38f 100644 --- a/subjects/nauuo/README.md +++ b/subjects/nauuo/README.md @@ -41,11 +41,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/nauuo/test$ go build +student@ubuntu:~/nauuo/test$ ./test ? 0 + - -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/nauuo/test$ ``` diff --git a/subjects/now-get-to-work/README.md b/subjects/now-get-to-work/README.md index 6167f99d1..ec116b947 100644 --- a/subjects/now-get-to-work/README.md +++ b/subjects/now-get-to-work/README.md @@ -11,9 +11,9 @@ Submit your solution in the file `my_answer.sh` that will print it when executed ### Utilisation ```console -student@ubuntu:~/[[ROOT]]/test$ ./my_answer.sh | cat -e +student@ubuntu:~/now-get-to-work/test$ ./my_answer.sh | cat -e John Doe$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/now-get-to-work/test$ ``` ### Hint diff --git a/subjects/nrune/README.md b/subjects/nrune/README.md index 1e0e8b782..e89ce7fec 100644 --- a/subjects/nrune/README.md +++ b/subjects/nrune/README.md @@ -40,8 +40,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/nrune/test$ go build +student@ubuntu:~/nrune/test$ ./test la! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/nrune/test$ ``` diff --git a/subjects/options/README.md b/subjects/options/README.md index 55927b791..a4ec433a4 100644 --- a/subjects/options/README.md +++ b/subjects/options/README.md @@ -21,26 +21,26 @@ Write a program that takes an undefined number of arguments which could be consi ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/options/test$ go build +student@ubuntu:~/options/test$ ./test | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -abc -ijk | cat -e +student@ubuntu:~/options/test$ ./test -abc -ijk | cat -e 00000000 00000000 00000111 00000111$ -student@ubuntu:~/[[ROOT]]/test$ ./test -z | cat -e +student@ubuntu:~/options/test$ ./test -z | cat -e 00000010 00000000 00000000 00000000$ -student@ubuntu:~/[[ROOT]]/test$ ./test -abc -hijk | cat -e +student@ubuntu:~/options/test$ ./test -abc -hijk | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -h | cat -e +student@ubuntu:~/options/test$ ./test -h | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -zh | cat -e +student@ubuntu:~/options/test$ ./test -zh | cat -e 00000010 00000000 00000000 10000000$ -student@ubuntu:~/[[ROOT]]/test$ ./test -z -h | cat -e +student@ubuntu:~/options/test$ ./test -z -h | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -hhhhhh | cat -e +student@ubuntu:~/options/test$ ./test -hhhhhh | cat -e options: abcdefghijklmnopqrstuvwxyz$ -student@ubuntu:~/[[ROOT]]/test$ ./test -eeeeee | cat -e +student@ubuntu:~/options/test$ ./test -eeeeee | cat -e 00000000 00000000 00000000 00010000$ -student@ubuntu:~/[[ROOT]]/test$ ./test -% | cat -e +student@ubuntu:~/options/test$ ./test -% | cat -e Invalid Option$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/options/test$ ``` diff --git a/subjects/ordinal/README.md b/subjects/ordinal/README.md index 4e6e1bcd5..97631f168 100644 --- a/subjects/ordinal/README.md +++ b/subjects/ordinal/README.md @@ -30,10 +30,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/ordinal/test$ cargo run 1st 22nd 43rd 47th -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ordinal/test$ ``` diff --git a/subjects/ownership/README.md b/subjects/ownership/README.md index ec14faf9e..94afff785 100644 --- a/subjects/ownership/README.md +++ b/subjects/ownership/README.md @@ -40,10 +40,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/ownership/test$ cargo run first_subword(helloWorld) = hello first_subword(snake_case) = snake first_subword(CamelCase) = Camel first_subword(just) = just -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ownership/test$ ``` diff --git a/subjects/pangram/README.md b/subjects/pangram/README.md index f59687d0e..c94cf52cc 100644 --- a/subjects/pangram/README.md +++ b/subjects/pangram/README.md @@ -41,8 +41,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/pangram/test$ cargo run true false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/pangram/test$ ``` diff --git a/subjects/panic/README.md b/subjects/panic/README.md index 2f996c929..a3625b0a7 100644 --- a/subjects/panic/README.md +++ b/subjects/panic/README.md @@ -36,7 +36,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run -File { fd: 3, path: "[[ROOT]]/a.txt", read: true, write: false } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/panic/test$ cargo run +File { fd: 3, path: "panic/a.txt", read: true, write: false } +student@ubuntu:~/panic/test$ ``` diff --git a/subjects/paramcount/README.md b/subjects/paramcount/README.md index 723347e68..cb42dbbe5 100644 --- a/subjects/paramcount/README.md +++ b/subjects/paramcount/README.md @@ -9,12 +9,12 @@ If there is no argument, the program displays `0` followed by a newline. ### Usage ```console -student@ubuntu:~/[[ROOT]]/paramcount$ go build -student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 1 2 3 5 7 24 +student@ubuntu:~/paramcount$ go build +student@ubuntu:~/paramcount$ ./paramcount 1 2 3 5 7 24 6 -student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount 6 12 24 | cat -e +student@ubuntu:~/paramcount$ ./paramcount 6 12 24 | cat -e 3$ -student@ubuntu:~/[[ROOT]]/paramcount$ ./paramcount | cat -e +student@ubuntu:~/paramcount$ ./paramcount | cat -e 0$ -student@ubuntu:~/[[ROOT]]/paramcount$ +student@ubuntu:~/paramcount$ ``` diff --git a/subjects/pig_latin/README.md b/subjects/pig_latin/README.md index 9b032b500..305ebc2ff 100644 --- a/subjects/pig_latin/README.md +++ b/subjects/pig_latin/README.md @@ -42,12 +42,12 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/pig_latin/test$ cargo run iglooay appleay ellohay aresquay enonxay airchay -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/pig_latin/test$ ``` diff --git a/subjects/point/README.md b/subjects/point/README.md index 35cc4a56d..06aedd898 100644 --- a/subjects/point/README.md +++ b/subjects/point/README.md @@ -30,8 +30,8 @@ func main() { ### Usage ```console -student@ubuntu:~/[[ROOT]]/point$ go build -student@ubuntu:~/[[ROOT]]/point$ ./point +student@ubuntu:~/point$ go build +student@ubuntu:~/point$ ./point x = 42, y = 21 -student@ubuntu:~/[[ROOT]]/point$ +student@ubuntu:~/point$ ``` diff --git a/subjects/pointone/README.md b/subjects/pointone/README.md index d7aab1e87..9d405a6b9 100644 --- a/subjects/pointone/README.md +++ b/subjects/pointone/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/pointone/test$ go build +student@ubuntu:~/pointone/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/pointone/test$ ``` diff --git a/subjects/printalphabet/README.md b/subjects/printalphabet/README.md index b682a208a..705edd8fb 100644 --- a/subjects/printalphabet/README.md +++ b/subjects/printalphabet/README.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabet$ go build -student@ubuntu:~/[[ROOT]]/printalphabet$ ./printalphabet +student@ubuntu:~/printalphabet$ go build +student@ubuntu:~/printalphabet$ ./printalphabet abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/[[ROOT]]/printalphabet$ +student@ubuntu:~/printalphabet$ ``` diff --git a/subjects/printalphabetalt/README.md b/subjects/printalphabetalt/README.md index 2f18a828a..39c6e6823 100644 --- a/subjects/printalphabetalt/README.md +++ b/subjects/printalphabetalt/README.md @@ -12,9 +12,9 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabetalt$ go build -student@ubuntu:~/[[ROOT]]/printalphabetalt$ ./printalphabetalt +student@ubuntu:~/printalphabetalt$ go build +student@ubuntu:~/printalphabetalt$ ./printalphabetalt aBcDeFgHiJkLmNoPqRsTuVwXyZ zYxWvUtSrQpOnMlKjIhGfEdCbA -student@ubuntu:~/[[ROOT]]/printalphabetalt$ +student@ubuntu:~/printalphabetalt$ ``` diff --git a/subjects/printalphabetalt2/README.md b/subjects/printalphabetalt2/README.md index 8f9d238dd..664b1aa13 100644 --- a/subjects/printalphabetalt2/README.md +++ b/subjects/printalphabetalt2/README.md @@ -12,9 +12,9 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabetalt2$ go build -student@ubuntu:~/[[ROOT]]/printalphabetalt2$ ./printalphabetalt2 +student@ubuntu:~/printalphabetalt2$ go build +student@ubuntu:~/printalphabetalt2$ ./printalphabetalt2 AbCdEfGhIjKlMnOpQrStUvWxYz ZyXwVuTsRqPoNmLkJiHgFeDcBa -student@ubuntu:~/[[ROOT]]/printalphabetalt2$ +student@ubuntu:~/printalphabetalt2$ ``` diff --git a/subjects/printalphabetg/README.md b/subjects/printalphabetg/README.md index 9b622d22c..f13c8e09f 100644 --- a/subjects/printalphabetg/README.md +++ b/subjects/printalphabetg/README.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalphabetg$ go build -student@ubuntu:~/[[ROOT]]/printalphabetg$ ./printalphabetg +student@ubuntu:~/printalphabetg$ go build +student@ubuntu:~/printalphabetg$ ./printalphabetg abcdefg -student@ubuntu:~/[[ROOT]]/printalphabetg$ +student@ubuntu:~/printalphabetg$ ``` diff --git a/subjects/printalt/README.md b/subjects/printalt/README.md index 80b4d3fed..1840aa50e 100644 --- a/subjects/printalt/README.md +++ b/subjects/printalt/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalt$ go build -student@ubuntu:~/[[ROOT]]/printalt$ ./printalt +student@ubuntu:~/printalt$ go build +student@ubuntu:~/printalt$ ./printalt azbycxdwevfugthsirjqkplomn -student@ubuntu:~/[[ROOT]]/printalt$ +student@ubuntu:~/printalt$ ``` diff --git a/subjects/printalt2/README.md b/subjects/printalt2/README.md index bd031b939..aa1917f11 100644 --- a/subjects/printalt2/README.md +++ b/subjects/printalt2/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printalt2$ go build -student@ubuntu:~/[[ROOT]]/printalt2$ ./printalt2 +student@ubuntu:~/printalt2$ go build +student@ubuntu:~/printalt2$ ./printalt2 zaybxcwdveuftgshriqjpkolnm -student@ubuntu:~/[[ROOT]]/printalt2$ +student@ubuntu:~/printalt2$ ``` diff --git a/subjects/printaltu/README.md b/subjects/printaltu/README.md index 208019a8f..c17c86949 100644 --- a/subjects/printaltu/README.md +++ b/subjects/printaltu/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printaltu$ go build -student@ubuntu:~/[[ROOT]]/printaltu$ ./printaltu +student@ubuntu:~/printaltu$ go build +student@ubuntu:~/printaltu$ ./printaltu AZBYCXDWEVFUGTHSIRJQKPLOMN -student@ubuntu:~/[[ROOT]]/printaltu$ +student@ubuntu:~/printaltu$ ``` diff --git a/subjects/printaltu2/README.md b/subjects/printaltu2/README.md index de09b3d09..cfa07b6c6 100644 --- a/subjects/printaltu2/README.md +++ b/subjects/printaltu2/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printaltu2$ go build -student@ubuntu:~/[[ROOT]]/printaltu2$ ./printaltu2 +student@ubuntu:~/printaltu2$ go build +student@ubuntu:~/printaltu2$ ./printaltu2 ZAYBXCWDVEUFTGSHRIQJPKOLNM -student@ubuntu:~/[[ROOT]]/printaltu2$ +student@ubuntu:~/printaltu2$ ``` diff --git a/subjects/printchessboard/README.md b/subjects/printchessboard/README.md index eebbe8ec0..ac2b10d75 100644 --- a/subjects/printchessboard/README.md +++ b/subjects/printchessboard/README.md @@ -9,14 +9,14 @@ Write a program that takes two integers as arguments and displays the chess desk ### Usage ```console -student@ubuntu:~/[[ROOT]]/printchessboard$ go build -student@ubuntu:~/[[ROOT]]/printchessboard$ ./printchessboard 4 3 | cat -e +student@ubuntu:~/printchessboard$ go build +student@ubuntu:~/printchessboard$ ./printchessboard 4 3 | cat -e # # $ # #$ # # $ -student@ubuntu:~/[[ROOT]]/printchessboard$ ./printchessboard 7 | cat -e +student@ubuntu:~/printchessboard$ ./printchessboard 7 | cat -e Error$ -student@ubuntu:~/[[ROOT]]/printchessboard$ ./printchessboard 0 0 | cat -e +student@ubuntu:~/printchessboard$ ./printchessboard 0 0 | cat -e Error$ -student@ubuntu:~/[[ROOT]]/printchessboard$ +student@ubuntu:~/printchessboard$ ``` diff --git a/subjects/printcomb/README.md b/subjects/printcomb/README.md index 280ce5b5a..969f94252 100644 --- a/subjects/printcomb/README.md +++ b/subjects/printcomb/README.md @@ -31,10 +31,10 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printcomb/test$ go build +student@ubuntu:~/printcomb/test$ ./test | cat -e 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printcomb/test$ ``` `000` or `999` are not valid combinations because the digits are not different. diff --git a/subjects/printcomb2/README.md b/subjects/printcomb2/README.md index becea7252..464e7e9e3 100644 --- a/subjects/printcomb2/README.md +++ b/subjects/printcomb2/README.md @@ -31,8 +31,8 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printcomb2/test$ go build +student@ubuntu:~/printcomb2/test$ ./test | cat -e 00 01, 00 02, 00 03, ..., 00 98, 00 99, 01 02, 01 03, ..., 97 98, 97 99, 98 99$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printcomb2/test$ ``` diff --git a/subjects/printcombn/README.md b/subjects/printcombn/README.md index c26caa0d8..d08107941 100644 --- a/subjects/printcombn/README.md +++ b/subjects/printcombn/README.md @@ -39,10 +39,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/printcombn/test$ go build +student@ubuntu:~/printcombn/test$ ./test 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 012345678, 012345679, ..., 123456789 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printcombn/test$ ``` diff --git a/subjects/printdigits/README.md b/subjects/printdigits/README.md index de44801c4..fbf064f22 100644 --- a/subjects/printdigits/README.md +++ b/subjects/printdigits/README.md @@ -9,8 +9,8 @@ A line is a sequence of characters preceding the end of line character (`'\n'`). ### Usage ```console -student@ubuntu:~/[[ROOT]]/printdigits$ go build -student@ubuntu:~/[[ROOT]]/printdigits$ ./printdigits +student@ubuntu:~/printdigits$ go build +student@ubuntu:~/printdigits$ ./printdigits 0123456789 -student@ubuntu:~/[[ROOT]]/printdigits$ +student@ubuntu:~/printdigits$ ``` diff --git a/subjects/printhex/README.md b/subjects/printhex/README.md index 4c33edac6..22bd75a16 100644 --- a/subjects/printhex/README.md +++ b/subjects/printhex/README.md @@ -10,15 +10,15 @@ Write a program that takes a positive (or zero) number expressed in base 10, and ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 10 +student@ubuntu:~/printhex/test$ go build +student@ubuntu:~/printhex/test$ ./test 10 a -student@ubuntu:~/[[ROOT]]/test$ ./test 255 +student@ubuntu:~/printhex/test$ ./test 255 ff -student@ubuntu:~/[[ROOT]]/test$ ./test 5156454 +student@ubuntu:~/printhex/test$ ./test 5156454 4eae66 -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ ./test "123 132 1" | cat -e +student@ubuntu:~/printhex/test$ ./test +student@ubuntu:~/printhex/test$ ./test "123 132 1" | cat -e ERROR$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printhex/test$ ``` diff --git a/subjects/printmemory/README.md b/subjects/printmemory/README.md index 3211609a3..c097412f0 100644 --- a/subjects/printmemory/README.md +++ b/subjects/printmemory/README.md @@ -31,11 +31,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printmemory/test$ go build +student@ubuntu:~/printmemory/test$ ./test | cat -e 6800 0000 6500 0000 6c00 0000 6c00 0000 $ 6f00 0000 1000 0000 1500 0000 2a00 0000 $ 0000 0000 0000 0000 $ hello..*..$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printmemory/test$ ``` diff --git a/subjects/printnbr/README.md b/subjects/printnbr/README.md index 09c2b918a..f2ebd080a 100644 --- a/subjects/printnbr/README.md +++ b/subjects/printnbr/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/printnbr/test$ go build +student@ubuntu:~/printnbr/test$ ./test -1230123 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printnbr/test$ ``` diff --git a/subjects/printnbrbase/README.md b/subjects/printnbrbase/README.md index 3daceb8e6..333f60411 100644 --- a/subjects/printnbrbase/README.md +++ b/subjects/printnbrbase/README.md @@ -54,12 +54,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/printnbrbase/test$ go build +student@ubuntu:~/printnbrbase/test$ ./test 125 -1111101 7D -uoi NV -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printnbrbase/test$ ``` diff --git a/subjects/printnbrinorder/README.md b/subjects/printnbrinorder/README.md index fa77895d1..0cf6d8c66 100644 --- a/subjects/printnbrinorder/README.md +++ b/subjects/printnbrinorder/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printnbrinorder/test$ go build +student@ubuntu:~/printnbrinorder/test$ ./test | cat -e 1230123$ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printnbrinorder/test$ ``` diff --git a/subjects/printparams/README.md b/subjects/printparams/README.md index f1b8fe72d..0f71cc7cc 100644 --- a/subjects/printparams/README.md +++ b/subjects/printparams/README.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line. Example of output : ```console -student@ubuntu:~/[[ROOT]]/printparams$ go build -student@ubuntu:~/[[ROOT]]/printparams$ ./printparams choumi is the best cat +student@ubuntu:~/printparams$ go build +student@ubuntu:~/printparams$ ./printparams choumi is the best cat choumi is the best cat -student@ubuntu:~/[[ROOT]]/printparams$ +student@ubuntu:~/printparams$ ``` diff --git a/subjects/printprogramname/README.md b/subjects/printprogramname/README.md index 6892c337c..05374cb7e 100644 --- a/subjects/printprogramname/README.md +++ b/subjects/printprogramname/README.md @@ -7,14 +7,14 @@ Write a **program** that prints the name of the program. Example of output : ```console -student@ubuntu:~/[[ROOT]]/printprogramname$ go build main.go -student@ubuntu:~/[[ROOT]]/printprogramname$ ./main +student@ubuntu:~/printprogramname$ go build main.go +student@ubuntu:~/printprogramname$ ./main main -student@ubuntu:~/[[ROOT]]/printprogramname$ go build -student@ubuntu:~/[[ROOT]]/printprogramname$ ./printprogramname | cat -e +student@ubuntu:~/printprogramname$ go build +student@ubuntu:~/printprogramname$ ./printprogramname | cat -e printprogramname$ -student@ubuntu:~/[[ROOT]]/printprogramname$ go build -o Nessy -student@ubuntu:~/[[ROOT]]/printprogramname$ ./Nessy +student@ubuntu:~/printprogramname$ go build -o Nessy +student@ubuntu:~/printprogramname$ ./Nessy Nessy -student@ubuntu:~/[[ROOT]]/printprogramname$ +student@ubuntu:~/printprogramname$ ``` diff --git a/subjects/printrevcomb/README.md b/subjects/printrevcomb/README.md index a063c130f..810065d1f 100644 --- a/subjects/printrevcomb/README.md +++ b/subjects/printrevcomb/README.md @@ -11,10 +11,10 @@ These combinations are separated by a comma and a space. Here is an **incomplete** output : ```console -student@ubuntu:~/[[ROOT]]/printrevcomb$ go build -student@ubuntu:~/[[ROOT]]/printrevcomb$ ./printrevcomb | cat -e +student@ubuntu:~/printrevcomb$ go build +student@ubuntu:~/printrevcomb$ ./printrevcomb | cat -e 987, 986, 985, 984, 983, 982, 981, 980, 976, ..., 310, 210$ -student@ubuntu:~/[[ROOT]]/printrevcomb$ +student@ubuntu:~/printrevcomb$ ``` `999` or `000` are not valid combinations because the digits are not different. diff --git a/subjects/printreversealphabet/README.md b/subjects/printreversealphabet/README.md index 49590c6d9..da5d69025 100644 --- a/subjects/printreversealphabet/README.md +++ b/subjects/printreversealphabet/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabet$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabet$ ./printreversealphabet +student@ubuntu:~/printreversealphabet$ go build +student@ubuntu:~/printreversealphabet$ ./printreversealphabet zyxwvutsrqponmlkjihgfedcba -student@ubuntu:~/[[ROOT]]/printreversealphabet$ +student@ubuntu:~/printreversealphabet$ ``` diff --git a/subjects/printreversealphabetalt/README.md b/subjects/printreversealphabetalt/README.md index 8e807191a..1c8d67756 100644 --- a/subjects/printreversealphabetalt/README.md +++ b/subjects/printreversealphabetalt/README.md @@ -14,9 +14,9 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabetalt$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabetalt$ ./printreversealphabetalt +student@ubuntu:~/printreversealphabetalt$ go build +student@ubuntu:~/printreversealphabetalt$ ./printreversealphabetalt zYxWvUtSrQpOnMlKjIhGfEdCbA aBcDeFgHiJkLmNoPqRsTuVwXyZ -student@ubuntu:~/[[ROOT]]/printreversealphabetalt$ +student@ubuntu:~/printreversealphabetalt$ ``` diff --git a/subjects/printreversealphabetalt2/README.md b/subjects/printreversealphabetalt2/README.md index 3be0d5101..28d9d64dd 100644 --- a/subjects/printreversealphabetalt2/README.md +++ b/subjects/printreversealphabetalt2/README.md @@ -14,9 +14,9 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabetalt2$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabetalt2$ ./printreversealphabetalt2 +student@ubuntu:~/printreversealphabetalt2$ go build +student@ubuntu:~/printreversealphabetalt2$ ./printreversealphabetalt2 ZyXwVuTsRqPoNmLkJiHgFeDcBa AbCdEfGhIjKlMnOpQrStUvWxYz -student@ubuntu:~/[[ROOT]]/printreversealphabetalt2$ +student@ubuntu:~/printreversealphabetalt2$ ``` diff --git a/subjects/printreversealphabetg/README.md b/subjects/printreversealphabetg/README.md index aa72f98e9..04705a58c 100644 --- a/subjects/printreversealphabetg/README.md +++ b/subjects/printreversealphabetg/README.md @@ -11,8 +11,8 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/[[ROOT]]/printreversealphabetg$ go build -student@ubuntu:~/[[ROOT]]/printreversealphabetg$ ./printreversealphabetg +student@ubuntu:~/printreversealphabetg$ go build +student@ubuntu:~/printreversealphabetg$ ./printreversealphabetg gfedcba -student@ubuntu:~/[[ROOT]]/printreversealphabetg$ +student@ubuntu:~/printreversealphabetg$ ``` diff --git a/subjects/printrot/README.md b/subjects/printrot/README.md index 06ed77f78..3d9ace015 100644 --- a/subjects/printrot/README.md +++ b/subjects/printrot/README.md @@ -12,16 +12,16 @@ If the input is invalid the program prints a newline (`'\n'`). ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "abc" +student@ubuntu:~/printrot/test$ go build +student@ubuntu:~/printrot/test$ ./test "abc" -student@ubuntu:~/[[ROOT]]/test$ ./test "a" +student@ubuntu:~/printrot/test$ ./test "a" abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/[[ROOT]]/test$ ./test "g" +student@ubuntu:~/printrot/test$ ./test "g" ghijklmnopqrstuvwxyzabcdef -student@ubuntu:~/[[ROOT]]/test$ ./test "a" "a" +student@ubuntu:~/printrot/test$ ./test "a" "a" -student@ubuntu:~/[[ROOT]]/test$ ./test "A" +student@ubuntu:~/printrot/test$ ./test "A" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printrot/test$ ``` diff --git a/subjects/printstr/README.md b/subjects/printstr/README.md index eae7f5c30..0a9a4319e 100644 --- a/subjects/printstr/README.md +++ b/subjects/printstr/README.md @@ -29,8 +29,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test | cat -e +student@ubuntu:~/printstr/test$ go build +student@ubuntu:~/printstr/test$ ./test | cat -e Hello World!% -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printstr/test$ ``` diff --git a/subjects/printwordstables/README.md b/subjects/printwordstables/README.md index 31183a9ff..dafd372d6 100644 --- a/subjects/printwordstables/README.md +++ b/subjects/printwordstables/README.md @@ -32,11 +32,11 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build main.go -student@ubuntu:~/[[ROOT]]/test$ ./main +student@ubuntu:~/printwordstables/test$ go build main.go +student@ubuntu:~/printwordstables/test$ ./main Hello how are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/printwordstables/test$ ``` diff --git a/subjects/priorprime/README.md b/subjects/priorprime/README.md index 1ac315ad0..a13ba29c3 100644 --- a/subjects/priorprime/README.md +++ b/subjects/priorprime/README.md @@ -33,8 +33,8 @@ func main() { Its output: ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./priorprime +student@ubuntu:~/priorprime/test$ go build +student@ubuntu:~/priorprime/test$ ./priorprime 41 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/priorprime/test$ ``` diff --git a/subjects/profanity_filter/README.md b/subjects/profanity_filter/README.md index 0b6e69896..ba3d1e76b 100644 --- a/subjects/profanity_filter/README.md +++ b/subjects/profanity_filter/README.md @@ -79,10 +79,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/profanity_filter/test$ cargo run (true, "hello there") (false, "ERROR: illegal") (false, "ERROR: illegal") (false, "ERROR: illegal") -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/profanity_filter/test$ ``` diff --git a/subjects/project_motion/README.md b/subjects/project_motion/README.md index 3e3b62dc9..536c67ed6 100644 --- a/subjects/project_motion/README.md +++ b/subjects/project_motion/README.md @@ -61,12 +61,12 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/project_motion/test$ cargo run Some(Object { distance: 50.0, velocity: 50.0, height: 145.1, time: 1.0 }) Some(Object { distance: 100.0, velocity: 50.0, height: 125.5, time: 2.0 }) Some(Object { distance: 150.0, velocity: 50.0, height: 81.4, time: 3.0 }) Some(Object { distance: 200.0, velocity: 50.0, height: 3.0, time: 4.0 }) None None -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/project_motion/test$ ``` diff --git a/subjects/quad/README.md b/subjects/quad/README.md index 3658e078f..51bec4327 100644 --- a/subjects/quad/README.md +++ b/subjects/quad/README.md @@ -37,12 +37,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o---o | | o---o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -60,10 +60,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o---o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -81,10 +81,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -102,14 +102,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test o | | | o -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -151,12 +151,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test /***\ * * \***/ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -174,10 +174,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test /***\ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -195,10 +195,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test / -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -216,14 +216,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test / * * * \ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -265,12 +265,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBA B B CBBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -288,10 +288,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBA -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -309,10 +309,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -330,14 +330,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A B B B C -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -379,12 +379,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC B B ABBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -402,10 +402,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -423,10 +423,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -444,14 +444,14 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A B B B A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` ---- @@ -493,12 +493,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC B B CBBBA -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #2 @@ -516,10 +516,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test ABBBC -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #3 @@ -537,10 +537,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` Program #4 @@ -558,12 +558,12 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/quad/test$ go build +student@ubuntu:~/quad/test$ ./test A B B B C -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/quad/test$ ``` diff --git a/subjects/quadchecker/README.md b/subjects/quadchecker/README.md index 74a1577d5..7b5327ce0 100644 --- a/subjects/quadchecker/README.md +++ b/subjects/quadchecker/README.md @@ -17,7 +17,7 @@ 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:~/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 @@ -25,38 +25,38 @@ student@ubuntu:~/[[ROOT]]/quadchecker$ ls -l -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:~/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:~/quadchecker$ +student@ubuntu:~/quadchecker$ +student@ubuntu:~/quadchecker$ +student@ubuntu:~/quadchecker$ ``` - If it's `quadC 1 1` : ```console -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1 +student@ubuntu:~/quadchecker$ ./quadC 1 1 A -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadD 1 1 +student@ubuntu:~/quadchecker$ ./quadD 1 1 A -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 1 +student@ubuntu:~/quadchecker$ ./quadE 1 1 A -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 1 | ./quadchecker +student@ubuntu:~/quadchecker$ ./quadC 1 1 | ./quadchecker [quadC] [1] [1] || [quadD] [1] [1] || [quadE] [1] [1] -student@ubuntu:~/[[ROOT]]/quadchecker$ +student@ubuntu:~/quadchecker$ ``` - If it's `quadC 1 2` : ```console -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2 +student@ubuntu:~/quadchecker$ ./quadE 1 2 A C -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadC 1 2 +student@ubuntu:~/quadchecker$ ./quadC 1 2 A C -student@ubuntu:~/[[ROOT]]/quadchecker$ ./quadE 1 2 | ./quadchecker +student@ubuntu:~/quadchecker$ ./quadE 1 2 | ./quadchecker [quadC] [1] [2] || [quadE] [1] [2] -student@ubuntu:~/[[ROOT]]/quadchecker$ +student@ubuntu:~/quadchecker$ ``` diff --git a/subjects/queens/README.md b/subjects/queens/README.md index 83b67387c..a8fbc9476 100644 --- a/subjects/queens/README.md +++ b/subjects/queens/README.md @@ -85,8 +85,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/queens/test$ cargo run Is it possible for the queens to attack each other? => true Is it possible for the queens to attack each other? => false -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/queens/test$ ``` diff --git a/subjects/question_mark/README.md b/subjects/question_mark/README.md index b56288109..7511bb96e 100644 --- a/subjects/question_mark/README.md +++ b/subjects/question_mark/README.md @@ -70,7 +70,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/question_mark/test$ cargo run 1000 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/question_mark/test$ ``` diff --git a/subjects/reachablenumber/README.md b/subjects/reachablenumber/README.md index e6e30ce90..dffeeeb9a 100644 --- a/subjects/reachablenumber/README.md +++ b/subjects/reachablenumber/README.md @@ -35,10 +35,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/reachablenumber/test$ go build +student@ubuntu:~/reachablenumber/test$ ./test 9 19 36 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reachablenumber/test$ ``` diff --git a/subjects/rectangle/README.md b/subjects/rectangle/README.md index d8269ad67..42efd061a 100644 --- a/subjects/rectangle/README.md +++ b/subjects/rectangle/README.md @@ -45,8 +45,8 @@ func main() { ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/rectangle/test$ go build +student@ubuntu:~/rectangle/test$ ./test area of the rectangle: 6 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rectangle/test$ ``` diff --git a/subjects/recursivefactorial/README.md b/subjects/recursivefactorial/README.md index 84f212342..94d97a26d 100644 --- a/subjects/recursivefactorial/README.md +++ b/subjects/recursivefactorial/README.md @@ -35,8 +35,8 @@ func main() { ``` ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/recursivefactorial/test$ go build +student@ubuntu:~/recursivefactorial/test$ ./test 24 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/recursivefactorial/test$ ``` diff --git a/subjects/recursivepower/README.md b/subjects/recursivepower/README.md index 65022253b..51d4a0bb1 100644 --- a/subjects/recursivepower/README.md +++ b/subjects/recursivepower/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/recursivepower/test$ go build +student@ubuntu:~/recursivepower/test$ ./test 64 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/recursivepower/test$ ``` diff --git a/subjects/reduceint/README.md b/subjects/reduceint/README.md index 1cea2f5c8..2f2441c76 100644 --- a/subjects/reduceint/README.md +++ b/subjects/reduceint/README.md @@ -40,10 +40,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/reduceint/test$ go build +student@ubuntu:~/reduceint/test$ ./test 1000 502 250 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reduceint/test$ ``` diff --git a/subjects/ref_cell/README.md b/subjects/ref_cell/README.md index 1f88560e7..dbcd45b79 100644 --- a/subjects/ref_cell/README.md +++ b/subjects/ref_cell/README.md @@ -98,7 +98,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/ref_cell/test$ cargo run ("Info", "you are using up too 40% of your quote") ("Warning", "you have used up over 90% of your quota! Proceeds with precaution") ("Error", "you are over your quota!") @@ -108,5 +108,5 @@ student@ubuntu:~/[[ROOT]]/test$ cargo run "Warning: you have used up over 90% of your quota! Proceeds with precaution", "Error: you are over your quota!" ] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ref_cell/test$ ``` diff --git a/subjects/repeatalpha/README.md b/subjects/repeatalpha/README.md index d72970fe3..7a34ea9fb 100644 --- a/subjects/repeatalpha/README.md +++ b/subjects/repeatalpha/README.md @@ -13,15 +13,15 @@ If the number of arguments is different from 1, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/repeatalpha$ go build -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha abc | cat -e +student@ubuntu:~/repeatalpha$ go build +student@ubuntu:~/repeatalpha$ ./repeatalpha abc | cat -e abbccc -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha Choumi. | cat -e +student@ubuntu:~/repeatalpha$ ./repeatalpha Choumi. | cat -e CCChhhhhhhhooooooooooooooouuuuuuuuuuuuuuuuuuuuummmmmmmmmmmmmiiiiiiiii.$ -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e +student@ubuntu:~/repeatalpha$ ./repeatalpha "abacadaba 01!" | cat -e abbacccaddddabba 01!$ -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha -student@ubuntu:~/[[ROOT]]/repeatalpha$ ./repeatalpha "" | cat -e +student@ubuntu:~/repeatalpha$ ./repeatalpha +student@ubuntu:~/repeatalpha$ ./repeatalpha "" | cat -e $ -student@ubuntu:~/[[ROOT]]/repeatalpha$ +student@ubuntu:~/repeatalpha$ ``` diff --git a/subjects/reverse/README.md b/subjects/reverse/README.md index e3b8d52ab..c71c8f483 100644 --- a/subjects/reverse/README.md +++ b/subjects/reverse/README.md @@ -54,8 +54,8 @@ func main() { Its output: ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main +student@ubuntu:~/reverse/test$ go build +student@ubuntu:~/reverse/test$ ./main 5 -> 4 -> 2 -> 3 -> 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reverse/test$ ``` diff --git a/subjects/reverse_it/README.md b/subjects/reverse_it/README.md index 3930d09d4..9644382f4 100644 --- a/subjects/reverse_it/README.md +++ b/subjects/reverse_it/README.md @@ -26,8 +26,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/reverse_it/test$ cargo run 321123 -321123 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reverse_it/test$ ``` diff --git a/subjects/reverse_string/README.md b/subjects/reverse_string/README.md index 25b8aed4a..4bc9e5836 100644 --- a/subjects/reverse_string/README.md +++ b/subjects/reverse_string/README.md @@ -37,11 +37,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/reverse_string/test$ cargo run !dlrow ,olleH namoR si eman ym ,olleH !rac ecin a evah I uoY era dlo woH augá elpmaxe na si siht :xe -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/reverse_string/test$ ``` diff --git a/subjects/reversestrcap/README.md b/subjects/reversestrcap/README.md index c636c7260..fd67e3c00 100644 --- a/subjects/reversestrcap/README.md +++ b/subjects/reversestrcap/README.md @@ -9,13 +9,13 @@ If there are no argument, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/reversestrcap$ go build -student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e +student@ubuntu:~/reversestrcap$ go build +student@ubuntu:~/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e firsT smalL tesT$ -student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e +student@ubuntu:~/reversestrcap$ ./reversestrcap "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e seconD tesT iS A littlE easieR$ bewarE it'S noT harD wheN $ gO A dernieR 0123456789 foR thE roaD E$ -student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap -student@ubuntu:~/[[ROOT]]/reversestrcap$ +student@ubuntu:~/reversestrcap$ ./reversestrcap +student@ubuntu:~/reversestrcap$ ``` diff --git a/subjects/revivethreenums/README.md b/subjects/revivethreenums/README.md index b0fb7afc5..c82597a20 100644 --- a/subjects/revivethreenums/README.md +++ b/subjects/revivethreenums/README.md @@ -36,10 +36,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/revivethreenums/test$ go build +student@ubuntu:~/revivethreenums/test$ ./test 3 20 100 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/revivethreenums/test$ ``` diff --git a/subjects/revparams/README.md b/subjects/revparams/README.md index f1a943930..4e8cb6e0e 100644 --- a/subjects/revparams/README.md +++ b/subjects/revparams/README.md @@ -7,12 +7,12 @@ Write a **program** that prints the arguments received in the command line in a Example of output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./revparams choumi is the best cat +student@ubuntu:~/revparams/test$ go build +student@ubuntu:~/revparams/test$ ./revparams choumi is the best cat cat best the is choumi -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/revparams/test$ ``` diff --git a/subjects/revwstr/README.md b/subjects/revwstr/README.md index 4123f40fa..89c955145 100644 --- a/subjects/revwstr/README.md +++ b/subjects/revwstr/README.md @@ -13,14 +13,14 @@ Write a program that takes a `string` as a parameter, and prints its words in re ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "the time of contempt precedes that of indifference" +student@ubuntu:~/revwstr/test$ go build +student@ubuntu:~/revwstr/test$ ./test "the time of contempt precedes that of indifference" indifference of that precedes contempt of time the -student@ubuntu:~/[[ROOT]]/test$ ./test "abcdefghijklm" +student@ubuntu:~/revwstr/test$ ./test "abcdefghijklm" abcdefghijklm -student@ubuntu:~/[[ROOT]]/test$ ./test "he stared at the mountain" +student@ubuntu:~/revwstr/test$ ./test "he stared at the mountain" mountain the at stared he -student@ubuntu:~/[[ROOT]]/test$ ./test "" | cat-e +student@ubuntu:~/revwstr/test$ ./test "" | cat-e $ -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/revwstr/test$ ``` diff --git a/subjects/rgb_match/README.md b/subjects/rgb_match/README.md index 621a429df..69a4e64d1 100644 --- a/subjects/rgb_match/README.md +++ b/subjects/rgb_match/README.md @@ -62,7 +62,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/rgb_match/test$ cargo run Color { r: 10, g: 200, b: 255, a: 30 } Color { r: 200, g: 255, b: 10, a: 30 } Color { r: 30, g: 200, b: 10, a: 255 } @@ -79,5 +79,5 @@ Color { r: 30, g: 200, b: 10, a: 255 } Color { r: 255, g: 200, b: 30, a: 10 } Color { r: 255, g: 30, b: 10, a: 200 } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rgb_match/test$ ``` diff --git a/subjects/robottoorigin/README.md b/subjects/robottoorigin/README.md index 2b710f8dd..9113f3a98 100644 --- a/subjects/robottoorigin/README.md +++ b/subjects/robottoorigin/README.md @@ -18,10 +18,10 @@ If the number of arguments is not 1, output nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main "UD" +student@ubuntu:~/robottoorigin/test$ go build +student@ubuntu:~/robottoorigin/test$ ./main "UD" true -student@ubuntu:~/[[ROOT]]/test$ ./main "LL" +student@ubuntu:~/robottoorigin/test$ ./main "LL" false ``` diff --git a/subjects/roman_numbers/README.md b/subjects/roman_numbers/README.md index 1ee26ecf7..e0d09c948 100644 --- a/subjects/roman_numbers/README.md +++ b/subjects/roman_numbers/README.md @@ -53,10 +53,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/roman_numbers/test$ cargo run RomanNumber([X, X, X, I, I]) RomanNumber([I, X]) RomanNumber([X, L, V]) RomanNumber([Nulla]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/roman_numbers/test$ ``` diff --git a/subjects/roman_numbers_iter/README.md b/subjects/roman_numbers_iter/README.md index f02de632e..fe0e030bc 100644 --- a/subjects/roman_numbers_iter/README.md +++ b/subjects/roman_numbers_iter/README.md @@ -68,10 +68,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/roman_numbers_iter/test$ cargo run RomanNumber([X, X, X, I, I]) RomanNumber([I, X]) RomanNumber([X, L, V]) RomanNumber([Nulla]) -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/roman_numbers_iter/test$ ``` diff --git a/subjects/romannumbers/README.md b/subjects/romannumbers/README.md index 6560d7604..68499a8d2 100644 --- a/subjects/romannumbers/README.md +++ b/subjects/romannumbers/README.md @@ -36,19 +36,19 @@ The following table gives the Roman numerals for the first few positive integers ## Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./rn hello +student@ubuntu:~/romannumbers/test$ go build +student@ubuntu:~/romannumbers/test$ ./rn hello ERROR: can not convert to roman digit -student@ubuntu:~/[[ROOT]]/test$ ./rn 123 +student@ubuntu:~/romannumbers/test$ ./rn 123 C+X+X+I+I+I CXXIII -student@ubuntu:~/[[ROOT]]/test$ ./rn 999 +student@ubuntu:~/romannumbers/test$ ./rn 999 (M-C)+(C-X)+(X-I) CMXCIX -student@ubuntu:~/[[ROOT]]/test$ ./rn 3999 +student@ubuntu:~/romannumbers/test$ ./rn 3999 M+M+M+(M-C)+(C-X)+(X-I) MMMCMXCIX -student@ubuntu:~/[[ROOT]]/test$ ./rn 4000 +student@ubuntu:~/romannumbers/test$ ./rn 4000 ERROR: can not convert to roman digit -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/romannumbers/test$ ``` diff --git a/subjects/rostring/README.md b/subjects/rostring/README.md index fcbf250ca..43d8ee8cd 100644 --- a/subjects/rostring/README.md +++ b/subjects/rostring/README.md @@ -16,14 +16,14 @@ If the number of arguments is different from 1, the program displays a newline. ### Usage ```console -student@ubuntu:~/[[ROOT]]/rostring$ go build -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "abc " | cat -e +student@ubuntu:~/rostring$ go build +student@ubuntu:~/rostring$ ./rostring "abc " | cat -e abc$ -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring "Let there be light" +student@ubuntu:~/rostring$ ./rostring "Let there be light" there be light Let -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring " AkjhZ zLKIJz , 23y" +student@ubuntu:~/rostring$ ./rostring " AkjhZ zLKIJz , 23y" zLKIJz , 23y AkjhZ -student@ubuntu:~/[[ROOT]]/rostring$ ./rostring | cat -e +student@ubuntu:~/rostring$ ./rostring | cat -e $ -student@ubuntu:~/[[ROOT]]/rostring$ +student@ubuntu:~/rostring$ ``` diff --git a/subjects/rot/README.md b/subjects/rot/README.md index 17b718c88..05e5396fb 100644 --- a/subjects/rot/README.md +++ b/subjects/rot/README.md @@ -63,7 +63,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/rot/test$ cargo run The letter "a" becomes: a The letter "m" becomes: m The letter "m" becomes: z @@ -74,5 +74,5 @@ The decoded message is: Ryg aesmuvi nkpd tewzsxq jolbkc foh Your cypher wil be: Xiwxmrk amxl ryqfivw 1 2 3 Your cypher wil be: Fqefuzs The letter "a" becomes: z -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot/test$ ``` diff --git a/subjects/rot13/README.md b/subjects/rot13/README.md index 20ba3f7a0..ec381367c 100644 --- a/subjects/rot13/README.md +++ b/subjects/rot13/README.md @@ -14,13 +14,13 @@ letters by the letter 13 spaces ahead in alphabetical order. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "abc" +student@ubuntu:~/rot13/test$ go build +student@ubuntu:~/rot13/test$ ./test "abc" nop -student@ubuntu:~/[[ROOT]]/test$ ./test "hello there" +student@ubuntu:~/rot13/test$ ./test "hello there" uryyb gurer -student@ubuntu:~/[[ROOT]]/test$ ./test "HELLO, HELP" +student@ubuntu:~/rot13/test$ ./test "HELLO, HELP" URYYB, URYC -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot13/test$ ./test +student@ubuntu:~/rot13/test$ ``` diff --git a/subjects/rot14/README.md b/subjects/rot14/README.md index 4c6e8e521..ebac8a410 100644 --- a/subjects/rot14/README.md +++ b/subjects/rot14/README.md @@ -37,8 +37,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/rot14/test$ go build +student@ubuntu:~/rot14/test$ ./test Vszzc Vck ofs Mci -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot14/test$ ``` diff --git a/subjects/rot21/README.md b/subjects/rot21/README.md index 06b914656..534fc070c 100644 --- a/subjects/rot21/README.md +++ b/subjects/rot21/README.md @@ -37,11 +37,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/rot21/test$ cargo run The letter "a" becomes: v The letter "m" becomes: h The word "MISS" becomes: HDNN Your cypher wil be: Oznodib iphwzmn 1 2 3 Your cypher wil be: mjo21 rjmfn! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rot21/test$ ``` diff --git a/subjects/rotatevowels/README.md b/subjects/rotatevowels/README.md index 7ab9f2830..cbff97854 100644 --- a/subjects/rotatevowels/README.md +++ b/subjects/rotatevowels/README.md @@ -11,18 +11,18 @@ Write a **program** that checks the arguments for vowels. Example of output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "Hello World" | cat -e +student@ubuntu:~/rotatevowels/test$ go build +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "Hello World" | cat -e Hollo Werld$ -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "HEllO World" "problem solved" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "HEllO World" "problem solved" Hello Werld problom sOlvEd -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "str" "shh" "psst" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "str" "shh" "psst" str shh psst -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "happy thoughts" "good luck" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "happy thoughts" "good luck" huppy thooghts guod lack -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels "aEi" "Ou" +student@ubuntu:~/rotatevowels/test$ ./rotatevowels "aEi" "Ou" uOi Ea -student@ubuntu:~/[[ROOT]]/test$ ./rotatevowels +student@ubuntu:~/rotatevowels/test$ ./rotatevowels -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/rotatevowels/test$ ``` diff --git a/subjects/rpncalc/README.md b/subjects/rpncalc/README.md index 578a315bc..8f56d44c5 100644 --- a/subjects/rpncalc/README.md +++ b/subjects/rpncalc/README.md @@ -47,16 +47,16 @@ Or: ### Usage ```console -student@ubuntu:~/[[ROOT]]/rpncalc$ go build -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e +student@ubuntu:~/rpncalc$ go build +student@ubuntu:~/rpncalc$ ./rpncalc "1 2 * 3 * 4 +" | cat -e 10$ -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc "1 2 3 4 +" | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc "1 2 3 4 +" | cat -e Error$ -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc | cat -e Error$ -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc " 1 3 * 2 -" | cat -e 1 -student@ubuntu:~/[[ROOT]]/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e +student@ubuntu:~/rpncalc$ ./rpncalc " 1 3 * ksd 2 -" | cat -e Error$ -student@ubuntu:~/[[ROOT]]/rpncalc$ +student@ubuntu:~/rpncalc$ ``` diff --git a/subjects/sales/README.md b/subjects/sales/README.md index 355647d23..d10c72b37 100644 --- a/subjects/sales/README.md +++ b/subjects/sales/README.md @@ -95,9 +95,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/sales/test$ cargo run Store { products: [("product A", 1.23), ("product B", 23.1), ("product C", 3.12)] } [1.17, 2.98, 22.07] Cart { items: [("product A", 1.23), ("product B", 23.1), ("product C", 3.12)], receipt: [1.17, 2.98, 22.07] } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sales/test$ ``` diff --git a/subjects/sametree/README.md b/subjects/sametree/README.md index da2621c08..e73d51238 100644 --- a/subjects/sametree/README.md +++ b/subjects/sametree/README.md @@ -94,8 +94,8 @@ func main() { ### Output ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sametree/test$ go build +student@ubuntu:~/sametree/test$ ./test true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sametree/test$ ``` diff --git a/subjects/scores/README.md b/subjects/scores/README.md index 6c5a64be5..3689e752b 100644 --- a/subjects/scores/README.md +++ b/subjects/scores/README.md @@ -49,9 +49,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/scores/test$ cargo run 1 0 14 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/scores/test$ ``` diff --git a/subjects/scytale_cipher/README.md b/subjects/scytale_cipher/README.md index c82ca4dcd..fc8c76242 100644 --- a/subjects/scytale_cipher/README.md +++ b/subjects/scytale_cipher/README.md @@ -61,8 +61,8 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/scytale_cipher/test$ cargo run "scytale Code" size=6 -> "sec yCtoadle" "scytale Code" size=8 -> "sCcoydtea l e" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/scytale_cipher/test$ ``` diff --git a/subjects/searching/README.md b/subjects/searching/README.md index ea3ca241a..38b43691a 100644 --- a/subjects/searching/README.md +++ b/subjects/searching/README.md @@ -39,7 +39,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/searching/test$ cargo run the element 6 is in the position Some(3) in the array [1, 3, 4, 6, 8, 9, 11] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/searching/test$ ``` diff --git a/subjects/searchreplace/README.md b/subjects/searchreplace/README.md index 24ba92870..1b4cd8510 100644 --- a/subjects/searchreplace/README.md +++ b/subjects/searchreplace/README.md @@ -11,11 +11,11 @@ Write a program that takes 3 arguments, the first argument is a `string` in whic ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "hella there" "a" "o" +student@ubuntu:~/searchreplace/test$ go build +student@ubuntu:~/searchreplace/test$ ./test "hella there" "a" "o" hello there -student@ubuntu:~/[[ROOT]]/test$ ./test "abcd" "z" "l" +student@ubuntu:~/searchreplace/test$ ./test "abcd" "z" "l" abcd -student@ubuntu:~/[[ROOT]]/test$ ./test "something" "a" "o" "b" "c" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/searchreplace/test$ ./test "something" "a" "o" "b" "c" +student@ubuntu:~/searchreplace/test$ ``` diff --git a/subjects/simple_hash/README.md b/subjects/simple_hash/README.md index a6d5d4162..d9333888f 100644 --- a/subjects/simple_hash/README.md +++ b/subjects/simple_hash/README.md @@ -60,11 +60,11 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/simple_hash/test$ cargo run Does the HashMap contains the name Roman? => false Does the HashMap contains the name Katie? => true Removing Robert () Does the HashMap contains the name Robert? => false Hash {"Katie": 334, "Daniel": 122, "Ashley": 333} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/simple_hash/test$ ``` diff --git a/subjects/slices_to_map/README.md b/subjects/slices_to_map/README.md index 629a182c3..cd3164c8a 100644 --- a/subjects/slices_to_map/README.md +++ b/subjects/slices_to_map/README.md @@ -29,7 +29,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/slices_to_map/test$ cargo run {"James": 2, "Liam": 3, "Emma": 23, "Noah": 5, "Olivia": 1} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/slices_to_map/test$ ``` diff --git a/subjects/sortedlistmerge/README.md b/subjects/sortedlistmerge/README.md index bc0428faa..612537bd1 100644 --- a/subjects/sortedlistmerge/README.md +++ b/subjects/sortedlistmerge/README.md @@ -68,8 +68,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortedlistmerge/test$ go build +student@ubuntu:~/sortedlistmerge/test$ ./test -2 -> 3 -> 5 -> 7 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortedlistmerge/test$ ``` diff --git a/subjects/sortintegertable/README.md b/subjects/sortintegertable/README.md index 2c6649803..df3c9c97a 100644 --- a/subjects/sortintegertable/README.md +++ b/subjects/sortintegertable/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortintegertable/test$ go build +student@ubuntu:~/sortintegertable/test$ ./test [0 1 2 3 4 5] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortintegertable/test$ ``` diff --git a/subjects/sortlistinsert/README.md b/subjects/sortlistinsert/README.md index 027eb9b74..913eaf1f5 100644 --- a/subjects/sortlistinsert/README.md +++ b/subjects/sortlistinsert/README.md @@ -69,9 +69,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortlistinsert/test$ go build +student@ubuntu:~/sortlistinsert/test$ ./test 1 -> 4 -> 9 -> -2 -> 1 -> 2 -> 4 -> 9 -> -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortlistinsert/test$ ``` diff --git a/subjects/sortparams/README.md b/subjects/sortparams/README.md index 2576801b3..769021842 100644 --- a/subjects/sortparams/README.md +++ b/subjects/sortparams/README.md @@ -7,8 +7,8 @@ Write a **program** that prints the arguments received in the command line in AS Example of output : ```console -student@ubuntu:~/[[ROOT]]/sortparams$ go build -student@ubuntu:~/[[ROOT]]/sortparams$ ./sortparams 1 a 2 A 3 b 4 C +student@ubuntu:~/sortparams$ go build +student@ubuntu:~/sortparams$ ./sortparams 1 a 2 A 3 b 4 C 1 2 3 @@ -17,5 +17,5 @@ A C a b -student@ubuntu:~/[[ROOT]]/sortparams$ +student@ubuntu:~/sortparams$ ``` diff --git a/subjects/sortwordarr/README.md b/subjects/sortwordarr/README.md index 8fe3b3f18..4557b396e 100644 --- a/subjects/sortwordarr/README.md +++ b/subjects/sortwordarr/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sortwordarr/test$ go build +student@ubuntu:~/sortwordarr/test$ ./test [1 2 3 A B C a b c] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sortwordarr/test$ ``` diff --git a/subjects/speed_transformation/README.md b/subjects/speed_transformation/README.md index 16be31cf2..3c65749f4 100644 --- a/subjects/speed_transformation/README.md +++ b/subjects/speed_transformation/README.md @@ -26,7 +26,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/speed_transformation/test$ cargo run 100 km/h is equivalent to 27.77777777777778 m/s -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/speed_transformation/test$ ``` diff --git a/subjects/spelling/README.md b/subjects/spelling/README.md index 20e9fb471..08aa28814 100644 --- a/subjects/spelling/README.md +++ b/subjects/spelling/README.md @@ -46,8 +46,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/spelling/test$ cargo run three hundred forty-eight nine thousand nine hundred ninety-six -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/spelling/test$ ``` diff --git a/subjects/split/README.md b/subjects/split/README.md index 05ca3853d..55c1dec16 100644 --- a/subjects/split/README.md +++ b/subjects/split/README.md @@ -35,8 +35,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/split/test$ go build +student@ubuntu:~/split/test$ ./test []string{"Hello", "how", "are", "you?"} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/split/test$ ``` diff --git a/subjects/splitwhitespaces/README.md b/subjects/splitwhitespaces/README.md index 707716808..4e2aa713f 100644 --- a/subjects/splitwhitespaces/README.md +++ b/subjects/splitwhitespaces/README.md @@ -34,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/splitwhitespaces/test$ go build +student@ubuntu:~/splitwhitespaces/test$ ./test []string{"Hello", "how", "are", "you?"} -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/splitwhitespaces/test$ ``` diff --git a/subjects/sqrt/README.md b/subjects/sqrt/README.md index 19165b78c..9d91a4cd4 100644 --- a/subjects/sqrt/README.md +++ b/subjects/sqrt/README.md @@ -33,9 +33,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sqrt/test$ go build +student@ubuntu:~/sqrt/test$ ./test 2 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sqrt/test$ ``` diff --git a/subjects/stars/README.md b/subjects/stars/README.md index 7ec062635..d1e13a0fd 100644 --- a/subjects/stars/README.md +++ b/subjects/stars/README.md @@ -30,9 +30,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/stars/test$ cargo run ** **************** ******************************** -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/stars/test$ ``` diff --git a/subjects/step_iterator/README.md b/subjects/step_iterator/README.md index 9c872c7ce..e5cb8db0e 100644 --- a/subjects/step_iterator/README.md +++ b/subjects/step_iterator/README.md @@ -50,8 +50,8 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/step_iterator/test$ cargo run 0,10,20,30,40,50,60,70,80,90,100, 0,12,24,36,48,60,72,84,96, -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/step_iterator/test$ ``` diff --git a/subjects/string_literals/README.md b/subjects/string_literals/README.md index 642072f70..d7ee09904 100644 --- a/subjects/string_literals/README.md +++ b/subjects/string_literals/README.md @@ -56,11 +56,11 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/string_literals/test$ cargo run true true true ("ru", "st") 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/string_literals/test$ ``` diff --git a/subjects/string_permutation/README.md b/subjects/string_permutation/README.md index 0fda4ea57..2f27cb419 100644 --- a/subjects/string_permutation/README.md +++ b/subjects/string_permutation/README.md @@ -40,7 +40,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/string_permutation/test$ cargo run Is `thought` a permutation of `thougth`? = true -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/string_permutation/test$ ``` diff --git a/subjects/strings/README.md b/subjects/strings/README.md index 7a51cf408..450fd94a1 100644 --- a/subjects/strings/README.md +++ b/subjects/strings/README.md @@ -29,10 +29,10 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/strings/test$ cargo run length of ❤ = 1 length of 形声字 = 3 length of change = 6 length of 😍 = 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/strings/test$ ``` diff --git a/subjects/strlen/README.md b/subjects/strlen/README.md index 3d07e83da..fb43a7ff9 100644 --- a/subjects/strlen/README.md +++ b/subjects/strlen/README.md @@ -33,8 +33,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/strlen/test$ go build +student@ubuntu:~/strlen/test$ ./test 12 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/strlen/test$ ``` diff --git a/subjects/strrev/README.md b/subjects/strrev/README.md index ff47f90e4..b31c2239e 100644 --- a/subjects/strrev/README.md +++ b/subjects/strrev/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/strrev/test$ go build +student@ubuntu:~/strrev/test$ ./test !dlroW olleH -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/strrev/test$ ``` diff --git a/subjects/sudoku/README.md b/subjects/sudoku/README.md index d263c4948..a0a1dcfe4 100644 --- a/subjects/sudoku/README.md +++ b/subjects/sudoku/README.md @@ -13,8 +13,8 @@ Example of output for one valid sudoku : ```console -student@ubuntu:~/[[ROOT]]/sudoku$ go build -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/sudoku$ go build +student@ubuntu:~/sudoku$ ./sudoku ".96.4...1" "1...6...4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e 3 9 6 2 4 5 7 8 1$ 1 7 8 3 6 9 5 2 4$ 5 2 4 8 1 7 3 9 6$ @@ -24,7 +24,7 @@ student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6...4" "5.481.39." " 7 1 2 6 3 8 4 5 9$ 6 5 9 1 7 4 8 3 2$ 8 4 3 5 9 2 1 6 7$ -student@ubuntu:~/[[ROOT]]/sudoku$ +student@ubuntu:~/sudoku$ ``` #### Example 2: @@ -32,11 +32,11 @@ student@ubuntu:~/[[ROOT]]/sudoku$ Examples of output for invalid input or sudokus : ```console -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku 1 2 3 4 | cat -e +student@ubuntu:~/sudoku$ ./sudoku 1 2 3 4 | cat -e Error$ -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku | cat -e +student@ubuntu:~/sudoku$ ./sudoku | cat -e Error$ -student@ubuntu:~/[[ROOT]]/sudoku$ ./sudoku ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e +student@ubuntu:~/sudoku$ ./sudoku ".96.4...1" "1...6.1.4" "5.481.39." "..795..43" ".3..8...." "4.5.23.18" ".1.63..59" ".59.7.83." "..359...7" | cat -e Error$ -student@ubuntu:~/[[ROOT]]/sudoku$ +student@ubuntu:~/sudoku$ ``` diff --git a/subjects/swap/README.md b/subjects/swap/README.md index 09af35d90..aa6ed6178 100644 --- a/subjects/swap/README.md +++ b/subjects/swap/README.md @@ -36,9 +36,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/swap/test$ go build +student@ubuntu:~/swap/test$ ./test 1 0 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/swap/test$ ``` diff --git a/subjects/sweetproblem/README.md b/subjects/sweetproblem/README.md index b5e93a223..1a7e8b842 100644 --- a/subjects/sweetproblem/README.md +++ b/subjects/sweetproblem/README.md @@ -36,10 +36,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/sweetproblem/test$ go build +student@ubuntu:~/sweetproblem/test$ ./test 1 10 9 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/sweetproblem/test$ ``` diff --git a/subjects/switchcase/README.md b/subjects/switchcase/README.md index a4ebee954..a5cba601b 100644 --- a/subjects/switchcase/README.md +++ b/subjects/switchcase/README.md @@ -13,9 +13,9 @@ Write a program that takes a `string` and reverses the case of all its letters. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test "SometHingS iS WronG" +student@ubuntu:~/switchcase/test$ go build +student@ubuntu:~/switchcase/test$ ./test "SometHingS iS WronG" sOMEThINGs Is wRONg -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/switchcase/test$ ./test +student@ubuntu:~/switchcase/test$ ``` diff --git a/subjects/tabmult/README.md b/subjects/tabmult/README.md index 0141a7338..643374c30 100644 --- a/subjects/tabmult/README.md +++ b/subjects/tabmult/README.md @@ -9,8 +9,8 @@ Write a program that displays a number's multiplication table. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test 9 +student@ubuntu:~/tabmult/test$ go build +student@ubuntu:~/tabmult/test$ ./test 9 1 x 9 = 9 2 x 9 = 18 3 x 9 = 27 @@ -20,7 +20,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 9 7 x 9 = 63 8 x 9 = 72 9 x 9 = 81 -student@ubuntu:~/[[ROOT]]/test$ ./test 19 +student@ubuntu:~/tabmult/test$ ./test 19 1 x 19 = 19 2 x 19 = 38 3 x 19 = 57 @@ -30,7 +30,7 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 19 7 x 19 = 133 8 x 19 = 152 9 x 19 = 171 -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/tabmult/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tabmult/test$ ``` diff --git a/subjects/talking/README.md b/subjects/talking/README.md index 81488dd0c..052093164 100644 --- a/subjects/talking/README.md +++ b/subjects/talking/README.md @@ -44,11 +44,11 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/talking/test$ cargo run "There is no need to yell, calm down!" "Sure." "Quiet, I am thinking!" "Interesting" "Just say something!" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/talking/test$ ``` diff --git a/subjects/temperature_conv/README.md b/subjects/temperature_conv/README.md index 223e3fca1..7b3fe4b5b 100644 --- a/subjects/temperature_conv/README.md +++ b/subjects/temperature_conv/README.md @@ -30,9 +30,9 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/temperature_conv/test$ cargo run -459.67 F = -273.15 C 0 C = 32 F -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/temperature_conv/test$ ``` diff --git a/subjects/tic_tac_toe/README.md b/subjects/tic_tac_toe/README.md index 1e442c622..29e604365 100644 --- a/subjects/tic_tac_toe/README.md +++ b/subjects/tic_tac_toe/README.md @@ -80,9 +80,9 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/tic_tac_toe/test$ cargo run "Tie" "player O won" "player X won" -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tic_tac_toe/test$ ``` diff --git a/subjects/to_url/README.md b/subjects/to_url/README.md index 828cae37b..4cb50b10a 100644 --- a/subjects/to_url/README.md +++ b/subjects/to_url/README.md @@ -27,7 +27,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/to_url/test$ cargo run Hello, world! to be use as an url is Hello,%20world! -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/to_url/test$ ``` diff --git a/subjects/tolower/README.md b/subjects/tolower/README.md index 0d509cd59..699377ab5 100644 --- a/subjects/tolower/README.md +++ b/subjects/tolower/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/tolower/test$ go build +student@ubuntu:~/tolower/test$ ./test hello! how are you? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tolower/test$ ``` diff --git a/subjects/toupper/README.md b/subjects/toupper/README.md index 193239c1b..1b939fd67 100644 --- a/subjects/toupper/README.md +++ b/subjects/toupper/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/toupper/test$ go build +student@ubuntu:~/toupper/test$ ./test HELLO! HOW ARE YOU? -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/toupper/test$ ``` diff --git a/subjects/traits/README.md b/subjects/traits/README.md index eff32305f..a849471ad 100644 --- a/subjects/traits/README.md +++ b/subjects/traits/README.md @@ -92,7 +92,7 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/traits/test$ cargo run this apple gives 4 units of strength Before eating Player { name: "player1", strength: 1.0, score: 0, money: 0, weapons: ["knife"] } After eating an apple @@ -103,5 +103,5 @@ After eating a steak player1 Strength: 14, Score: 0, Money: 0 Weapons: ["knife"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/traits/test$ ``` diff --git a/subjects/trimatoi/README.md b/subjects/trimatoi/README.md index d18a26f87..5d1e020d1 100644 --- a/subjects/trimatoi/README.md +++ b/subjects/trimatoi/README.md @@ -44,8 +44,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/trimatoi/test$ go build +student@ubuntu:~/trimatoi/test$ ./test 12345 12345 12345 @@ -53,5 +53,5 @@ student@ubuntu:~/[[ROOT]]/test$ ./test 1234 -1234 1234 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/trimatoi/test$ ``` diff --git a/subjects/tuples/README.md b/subjects/tuples/README.md index 7d84a5809..0efab8654 100644 --- a/subjects/tuples/README.md +++ b/subjects/tuples/README.md @@ -54,10 +54,10 @@ fn main() { And its output: ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/tuples/test$ cargo run Student: Student(20, "Pedro", "Domingos") Student first name: Pedro Student last name: Domingos Student Id: 20 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/tuples/test$ ``` diff --git a/subjects/twosum/README.md b/subjects/twosum/README.md index 1d1cbd400..aefc8344b 100644 --- a/subjects/twosum/README.md +++ b/subjects/twosum/README.md @@ -32,8 +32,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/twosum/test$ go build +student@ubuntu:~/twosum/test$ ./test [0 3] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/twosum/test$ ``` diff --git a/subjects/ultimatedivmod/README.md b/subjects/ultimatedivmod/README.md index dc02d9cfc..4853cbe6e 100644 --- a/subjects/ultimatedivmod/README.md +++ b/subjects/ultimatedivmod/README.md @@ -40,9 +40,9 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/ultimatedivmod/test$ go build +student@ubuntu:~/ultimatedivmod/test$ ./test 6 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ultimatedivmod/test$ ``` diff --git a/subjects/ultimatepointone/README.md b/subjects/ultimatepointone/README.md index e556c6214..065958e5e 100644 --- a/subjects/ultimatepointone/README.md +++ b/subjects/ultimatepointone/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/ultimatepointone/test$ go build +student@ubuntu:~/ultimatepointone/test$ ./test 1 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/ultimatepointone/test$ ``` diff --git a/subjects/union/README.md b/subjects/union/README.md index 737698f40..ed1b72cc3 100644 --- a/subjects/union/README.md +++ b/subjects/union/README.md @@ -11,16 +11,16 @@ If the number of arguments is different from 2, then the program displays newlin ### Usage ```console -student@ubuntu:~/[[ROOT]]/union$ go build -student@ubuntu:~/[[ROOT]]/union$ ./union zpadinton paqefwtdjetyiytjneytjoeyjnejeyj | cat -e +student@ubuntu:~/union$ go build +student@ubuntu:~/union$ ./union zpadinton paqefwtdjetyiytjneytjoeyjnejeyj | cat -e zpadintoqefwjy$ -student@ubuntu:~/[[ROOT]]/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e +student@ubuntu:~/union$ ./union ddf6vewg64f gtwthgdwthdwfteewhrtag6h4ffdhsd | cat -e df6vewg4thras$ -student@ubuntu:~/[[ROOT]]/union$ ./union rien "cette phrase ne cache rien" | cat -e +student@ubuntu:~/union$ ./union rien "cette phrase ne cache rien" | cat -e rienct phas$ -student@ubuntu:~/[[ROOT]]/union$ ./union | cat -e +student@ubuntu:~/union$ ./union | cat -e $ -student@ubuntu:~/[[ROOT]]/union$ ./union rien | cat -e +student@ubuntu:~/union$ ./union rien | cat -e $ -student@ubuntu:~/[[ROOT]]/union$ +student@ubuntu:~/union$ ``` diff --git a/subjects/uniqueoccurences/README.md b/subjects/uniqueoccurences/README.md index c8a3a520c..6d829cf3b 100644 --- a/subjects/uniqueoccurences/README.md +++ b/subjects/uniqueoccurences/README.md @@ -11,12 +11,12 @@ Only lower case characters will be given. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./main abbaac +student@ubuntu:~/uniqueoccurences/test$ go build +student@ubuntu:~/uniqueoccurences/test$ ./main abbaac true -student@ubuntu:~/[[ROOT]]/test$ ./main ab +student@ubuntu:~/uniqueoccurences/test$ ./main ab false -student@ubuntu:~/[[ROOT]]/test$ ./main abcacccazb +student@ubuntu:~/uniqueoccurences/test$ ./main abcacccazb true ``` diff --git a/subjects/unmatch/README.md b/subjects/unmatch/README.md index e58cfb527..2517c80f1 100644 --- a/subjects/unmatch/README.md +++ b/subjects/unmatch/README.md @@ -36,8 +36,8 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/unmatch/test$ go build +student@ubuntu:~/unmatch/test$ ./test 4 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/unmatch/test$ ``` diff --git a/subjects/unwrap_or_expect/README.md b/subjects/unwrap_or_expect/README.md index d9dd14a4b..083a56f27 100644 --- a/subjects/unwrap_or_expect/README.md +++ b/subjects/unwrap_or_expect/README.md @@ -92,5 +92,5 @@ Ok([2, 4, 6]) [2, 4, 6] Err(("There is a even value in the vector!", [2, 6])) [2, 6] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/unwrap_or_expect/test$ ``` diff --git a/subjects/vector_operations/README.md b/subjects/vector_operations/README.md index bfba00388..95639cf59 100644 --- a/subjects/vector_operations/README.md +++ b/subjects/vector_operations/README.md @@ -42,7 +42,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/vector_operations/test$ cargo run ThreeDVector { i: 5, j: 12, k: 6 } -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/vector_operations/test$ ``` diff --git a/subjects/vehicles/README.md b/subjects/vehicles/README.md index 592f10a2d..ec066e99b 100644 --- a/subjects/vehicles/README.md +++ b/subjects/vehicles/README.md @@ -73,7 +73,7 @@ fn main() { And its output ```console -student@ubuntu:~/[[ROOT]]/test$ cargo run +student@ubuntu:~/vehicles/test$ cargo run ["Model 3", "Ranger"] -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/vehicles/test$ ``` diff --git a/subjects/volumechanger/README.md b/subjects/volumechanger/README.md index 4ddd8148e..865547ff8 100644 --- a/subjects/volumechanger/README.md +++ b/subjects/volumechanger/README.md @@ -38,10 +38,10 @@ func main() { And its output : ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test +student@ubuntu:~/volumechanger/test$ go build +student@ubuntu:~/volumechanger/test$ ./test 2 3 2 -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/volumechanger/test$ ``` diff --git a/subjects/wdmatch/README.md b/subjects/wdmatch/README.md index cbca204f6..03bc3e55c 100644 --- a/subjects/wdmatch/README.md +++ b/subjects/wdmatch/README.md @@ -11,13 +11,13 @@ If the number of arguments is different from 2, the program displays nothing. ### Usage ```console -student@ubuntu:~/[[ROOT]]/test$ go build -student@ubuntu:~/[[ROOT]]/test$ ./test faya fgvvfdxcacpolhyghbreda +student@ubuntu:~/wdmatch/test$ go build +student@ubuntu:~/wdmatch/test$ ./test faya fgvvfdxcacpolhyghbreda faya -student@ubuntu:~/[[ROOT]]/test$ ./test faya fgvvfdxcacpolhyghbred -student@ubuntu:~/[[ROOT]]/test$ ./test error rrerrrfiiljdfxjyuifrrvcoojh -student@ubuntu:~/[[ROOT]]/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " +student@ubuntu:~/wdmatch/test$ ./test faya fgvvfdxcacpolhyghbred +student@ubuntu:~/wdmatch/test$ ./test error rrerrrfiiljdfxjyuifrrvcoojh +student@ubuntu:~/wdmatch/test$ ./test "quarante deux" "qfqfsudf arzgsayns tsregfdgs sjytdekuoixq " quarante deux -student@ubuntu:~/[[ROOT]]/test$ ./test -student@ubuntu:~/[[ROOT]]/test$ +student@ubuntu:~/wdmatch/test$ ./test +student@ubuntu:~/wdmatch/test$ ``` diff --git a/subjects/wget/README.md b/subjects/wget/README.md index 19a94dec4..03c156421 100644 --- a/subjects/wget/README.md +++ b/subjects/wget/README.md @@ -26,7 +26,7 @@ To see more about wget you can visit the manual by using the command `man wget`, Your program must have as arguments the link from where you want to download the file, for instance: ```console -student@student$ ./wget https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ ./wget https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg ``` The program should be able to give feedback, displaying the: @@ -44,7 +44,7 @@ The program should be able to give feedback, displaying the: It should look something like this ```console -student@student$ go run main.go https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg start at 2017-10-14 03:46:06 sending request, awaiting response... status 200 OK content size: 56370 [~0.06MB] @@ -62,7 +62,7 @@ Your program should be able to handle different flags. 1. Download a file and save it under a different name by using the flag `-O` followed by the name you wish to save the file, example: ```console -student@student$ go run main.go -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg start at 2017-10-14 03:46:06 sending request, awaiting response... status 200 OK content size: 56370 [~0.06MB] @@ -71,7 +71,7 @@ saving file to: ./meme.jpg Downloaded [https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg] finished at 2017-10-14 03:46:07 -student@student$ ls -l +student@ubuntu:~/wget$ ls -l -rw-r--r-- 1 student student 56370 ago 13 16:59 meme.jpg -rw-r--r-- 1 student student 11489 ago 13 10:28 main.go ``` @@ -81,7 +81,7 @@ student@student$ ls -l 2. It should also handle the path to where your file is going to be saved using the flag `-P` followed by the path to where you want to save the file, example: ```console -student@student$ go run main.go -P=~/Downloads/ -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . -P=~/Downloads/ -O=meme.jpg https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg start at 2017-10-14 03:46:06 sending request, awaiting response... status 200 OK content size: 56370 [~0.06MB] @@ -90,7 +90,7 @@ saving file to: ~/Downloads/meme.jpg Downloaded [https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg] finished at 2017-10-14 03:46:07 -student@student$ ls -l ~/Downloads/meme.jpg +student@ubuntu:~/wget$ ls -l ~/Downloads/meme.jpg -rw-r--r-- 1 student student 56370 ago 13 16:59 /home/student/Downloads/meme.jpg ``` @@ -99,7 +99,7 @@ student@student$ ls -l ~/Downloads/meme.jpg 3. The program should handle speed limit. Basically the program can control the speed of the download by using the flag `--rate-limit`. If you download a huge file you can limit the speed of your download, preventing the program from using the full possible bandwidth of your connection, example: ```console -student@student$ go run main.go --rate-limit=400k https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg +student@ubuntu:~/wget$ go run . --rate-limit=400k https://pbs.twimg.com/media/EMtmPFLWkAA8CIS.jpg ``` This flag should accept different value types, example: k and M. So you can put the rate limit as `rate-limit=200k` or `rate-limit=2M` @@ -109,12 +109,12 @@ This flag should accept different value types, example: k and M. So you can put 4. Downloading different files should be possible. For this the program will receive the `-i` flag followed by a file name that will contain all links that are to be downloaded. Example: ```console -student@student$ ls +student@ubuntu:~/wget$ ls download.txt main.go -student@student$ cat download.txt +student@ubuntu:~/wget$ cat download.txt http://ipv4.download.thinkbroadband.com/20MB.zip http://ipv4.download.thinkbroadband.com/10MB.zip -student@student$ go run main -i=download.txt +student@ubuntu:~/wget$ go run main -i=download.txt content size: [10485760, 20971520] finished 10MB.zip finished 20MB.zip @@ -142,7 +142,7 @@ Those flags will work based on [Follow links](https://www.gnu.org/software/wget/ example: ```console -student@student$ ./wget --mirror -R=jpg,gif https://example.com +student@ubuntu:~/wget$ ./wget --mirror -R=jpg,gif https://example.com ``` - [Directory-Based Limits](https://www.gnu.org/software/wget/manual/wget.html#Directory_002dBased-Limits) (`--exclude` short hand -X) @@ -152,7 +152,7 @@ student@student$ ./wget --mirror -R=jpg,gif https://example.com example: ```console -student@student ./wget --mirror -X=/assets,/css https://example.com +student@ubuntu:~/wget$ ./wget --mirror -X=/assets,/css https://example.com ``` ### Hint