Skip to content

Commit 6a0fc5d

Browse files
Update README.md
1 parent b2a6f6a commit 6a0fc5d

File tree

1 file changed

+46
-2
lines changed

1 file changed

+46
-2
lines changed

README.md

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ The caeser cipher is long used cipher in cryptography, traced by to Julius Caese
2222
> 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.
2323
2424
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+
```
2530
### Project Status
2631
At this time, the project is __*finished*__.
2732
### Instructions
@@ -37,6 +42,16 @@ This program does have user input capabilities, however they have not been compl
3742
## Sub Strings
3843
### Information
3944
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).
45+
The expected output for this project should be:
46+
```
47+
> dictionary = ["below","down","go","going","horn","how","howdy","it","i","low","own","part","partner","sit"]
48+
49+
> substrings("below", dictionary)
50+
=> {"below"=>1, "low"=>1}
51+
52+
> substrings("Howdy partner, sit down! How's it going?", dictionary)
53+
=> {"how"=>2, "howdy"=>1, "part"=>1, "partner"=>1, "it"=>2, "i"=>3, "sit"=>1, "down"=>1, "own"=>1, "go"=>1, "going"=>1}
54+
```
4055
### Project Status
4156
At this time, the project is __*finished*__.
4257
### Instructions
@@ -50,11 +65,40 @@ ruby sub-string.rb
5065
```
5166
## Stock Picker
5267
### Information
68+
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+
```
5375
### Project Status
54-
At this time, the project is __NOT *finished*__.
76+
At this time, the project is __*finished*__.
5577
### 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+
```
5686
## Bubble Sort
5787
### 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+
```
5894
### Project Status
59-
At this time, the project is __NOT *finished*__.
95+
At this time, the project is __*finished*__.
6096
### 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:
102+
```
103+
ruby bubble-sort.rb
104+
```

0 commit comments

Comments
 (0)