TheIronYard--Orlando / ROR--2015--SPRING

Resources and homework for the Ruby on Rails cohort at @TheIronYard--Orlando for Spring 2015
Creative Commons Zero v1.0 Universal
6 stars 7 forks source link

03 -- Method to the Madness -- Kelly Strickland #28

Closed QueVee closed 9 years ago

QueVee commented 9 years ago

Tasks

Description

Three programming challenges for today:

Extend your Fixnum#to_roman method to work up to 2015.

A factorial of an integer is the product of all positive integers up to and including that integer. For example 6 factorial = 6 * 5 * 4 * 3 * 2 * 1. Write a method on the Fixnum class which returns the factorial of a number.

Write a method on the Fixnum class to convert a number to its name in English.

EXPERT LEVEL: Write a function that can do addition or multiplication in English. For example given "twenty three times seventy eight", it should return "one thousand seven hundred ninety four".

SUPER EXPERT LEVEL: Write a function that can do any basic arithmetic operation - addition, subtraction, multiplication, or division - in English, accepting a string as input and returning one as output.

Objectives

Learning Objectives

After completing this assignment, you should begin to understand how to:

formulate expectations for your code step-by-step write the simplest code that meets your expectations write the simplest expectation that breaks use the Ruby concept of self extend the capabilities of a built-in class by writing new methods Performance Objectives

QueVee commented 9 years ago

Wiki Pages

https://github.com/QueVee/TIY-Assignments/wiki

QueVee commented 9 years ago

Pull Request

https://github.com/QueVee/TIY-Assignments/pull/4