Tal vez te guste
please use this guide for your programs: http://tinyurl.com/5h5mnd
going forward, when you feel you have completed an exercise, please post it up on gist so we can evaluate it and give you some feedback.
and since the book seems to have finally gotten tough enough, lets slow down to having through chapter 10 done by sunday
so, chapter 7 seems to have given everyone some problems. it would be best if you could put your programs up on gist so we can look at them
for reference, this is a fully working grandma example. if you don't want to see the solution, don't look. http://gist.github.com/53816
@zr00cool hint: change your "while input != bye" to a "while (gets.chomp)" now you can examine the input and act differently if its "bye"
for future code questions, post your code here: http://gist.github.com and then twitter the link. make sure to save file like example.rb
gist.github.com
Discover gists
GitHub Gist: instantly share code, notes, and snippets.
With the confusion about loops here's another exercise: Create a loop that will find the sum of all prime numbers between one and twenty.
For any reference questions on ruby, there is a free book here: http://www.rubycentral.com/book It is only a reference, not a tutorial
so it seems that everyone has raced ahead and that 2 chapters is too slow. so for next Sunday, let's have everyone finish up to chapter 10
so since no one has said anything, i'm assuming the first two chapters were easy. we're going to make chapters 2 and 3 due by wednesday.
any questions so far? the first chapters are pretty quiet so i didn't expect much but the silence is deafening. should we speed up?
United States Tendencias
- 1. Jets 71.4K posts
- 2. Bengals 40K posts
- 3. Giants 84.2K posts
- 4. Eagles 98.6K posts
- 5. Falcons 35.4K posts
- 6. Zac Taylor 2,984 posts
- 7. Caleb 34K posts
- 8. Bears 62.4K posts
- 9. Ravens 45.2K posts
- 10. Myles Garrett 6,045 posts
- 11. Browns 40.6K posts
- 12. Skattebo 38.8K posts
- 13. Dolphins 26.3K posts
- 14. 49ers 28.6K posts
- 15. Andy Dalton 8,510 posts
- 16. Drake Maye 11.7K posts
- 17. Justin Fields 5,770 posts
- 18. Dillon Gabriel 4,528 posts
- 19. Texans 23.2K posts
- 20. James Cook 5,929 posts
Tal vez te guste
Something went wrong.
Something went wrong.