You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-2Lines changed: 46 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,11 @@ The caeser cipher is long used cipher in cryptography, traced by to Julius Caese
22
22
> In cryptography, a Caesar cipher, also known as Caesar’s cipher, the shift cipher, Caesar’s code or Caesar shift, is one of the simplest and most widely known encryption techniques. It is a type of substitution cipher in which each letter in the plaintext is replaced by a letter some fixed number of positions down the alphabet. For example, with a left shift of 3, D would be replaced by A, E would become B, and so on.
23
23
24
24
In this project, the caeser cipher is implemented using Ruby. This project is part of The Odin Project's Ruby Programming curriculum. The project information can be found [here](https://www.theodinproject.com/courses/ruby-programming/lessons/caesar-cipher).
25
+
The expected output for this project should be:
26
+
```
27
+
> caeser_cipher("What a string!", 5)
28
+
=> "Bmfy f xywnsl!"
29
+
```
25
30
### Project Status
26
31
At this time, the project is __*finished*__.
27
32
### Instructions
@@ -37,6 +42,16 @@ This program does have user input capabilities, however they have not been compl
37
42
## Sub Strings
38
43
### Information
39
44
This function takes a word/phrase and a dictionary of words (as an array) as inputs to the functions. The function then returns a hash with each word found from the dictionary found in the word/phrase and the number of occurences. This project is implemented using Ruby as part of The Odin Project's Ruby Programming curriculum. The project information can be found [here](https://www.theodinproject.com/courses/ruby-programming/lessons/sub-strings).
This program takes an array of stock prices and tells the user what the best day to buy and sell the said stock is. These two days are returned, as well as the profit margin for these days. This project is implemented using Ruby as part of The Odin Project's Ruby Programming curriculum. The project information can be found [here](https://www.theodinproject.com/courses/ruby-programming/lessons/stock-picker).
69
+
The expected output for this project should be:
70
+
```
71
+
> stock_picker([17,3,6,9,15,8,6,1,10])
72
+
=> [1,4]
73
+
=> "Profit: 12"
74
+
```
53
75
### Project Status
54
-
At this time, the project is __NOT *finished*__.
76
+
At this time, the project is __*finished*__.
55
77
### Instructions
78
+
To use this program, Ruby will need to be installed. This program is build on Ruby v2.6.5p114. To check your current version:
79
+
```
80
+
ruby -v
81
+
```
82
+
If you have a compatible version, this program can be run using this command in the directory the file is saved:
83
+
```
84
+
ruby sub-string.rb
85
+
```
56
86
## Bubble Sort
57
87
### Information
88
+
This program takes an array and then returns the array sorted. This program is implemented using a bubble sort. In a bubble sort, each element is compared to the one next to it and they are swapped if the one on the left is larger than the one on the right. This continues until the array is eventually sorted. This project is implemented using Ruby as part of The Odin Project's Ruby Programming curriculum. The project information can be found [here](https://www.theodinproject.com/courses/ruby-programming/lessons/bubble-sort).
89
+
The expected output for this project should be:
90
+
```
91
+
> bubble_sort([4,3,78,2,0,2])
92
+
=> [0, 2, 2, 3, 4, 78]
93
+
```
58
94
### Project Status
59
-
At this time, the project is __NOT *finished*__.
95
+
At this time, the project is __*finished*__.
60
96
### Instructions
97
+
To use this program, Ruby will need to be installed. This program is build on Ruby v2.6.5p114. To check your current version:
98
+
```
99
+
ruby -v
100
+
```
101
+
If you have a compatible version, this program can be run using this command in the directory the file is saved:
0 commit comments