Skip to content

finished ruby collections#1

Open
ARSmith-prog wants to merge 5 commits intoCode-the-Dream-School:masterfrom
ARSmith-prog:ruby_3
Open

finished ruby collections#1
ARSmith-prog wants to merge 5 commits intoCode-the-Dream-School:masterfrom
ARSmith-prog:ruby_3

Conversation

@ARSmith-prog
Copy link

No description provided.

@Iuliia-Shevtsova
Copy link

Iuliia-Shevtsova commented Apr 5, 2021

Good work! You need to add some changes.

  1. Program in sorted_words.rb allows to enter just one word and print it. The task says user should be able to to add as many words as they like, until they just hit enter, and then print all words. So you need just add a loop in your program.
  2. Program in add_up.rb works great! But according the task function add_up should has a parameter i that indicate the number. So it will should look like add_up(i). You perfectly used the function with the parameter in leap_year.rb program.

updated answer
updated answer
@ARSmith-prog
Copy link
Author

ARSmith-prog commented Apr 8, 2021 via email

Comment on lines +13 to +14
end
puts "Your Words Are: #{words.join(",")}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to sort the array before print it out)

Copy link

@Iuliia-Shevtsova Iuliia-Shevtsova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add_up.rb is correct!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants