Ruby Pair Programming Exercises

Introduction

This morning we are going to deepen our ruby skills. There are three exercises. Find someone to pair with and pick one of the three. At the end of class one person or pair will share out their solution for each of the three exercises.

Exercise 1

Numbers To Words

  • Write a Ruby algorithm that converts integers into English words. Go here

Exercise 2

Pig Latin

  • Write a Ruby algorithm that converts English into Pig Latin. Go here

Exercise 3

Roman Numerals

  • Write a Ruby algorithm that converts Arabic numbers (3, 56, etc.) into Roman Numerals. Go here
  • This one has tests using JavaScript and Jasmine, and can be solved in Ruby or JavaScript.