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
Deliverables
A WIP Issue in the class repo
Titled appropriately
With check boxes for the tasks and any subtasks you can identify
Estimates for the top-level checkboxes
Update your TIY-Assignments wiki
Create a branch in your TIY-Assignments repo, named appropriately
include a code/ folder with files for each of the three (or four) coding challenges you undertake
A Pull Request in your TIY-Assignments folder as on previous assignments
Comments on your WIP Issue as on previous assignments
Requirements
Tasks
[x] Estimate all the top-level tasks with T-shirt sizes: S, M, L, XL
[x] End of lab wiki edit
[x] Add your thoughts on this assignment to the Assignment Evaluation page.
[x] Update Light Bulbs and Things I Don't Get Yet to reflect how you feel at the end of lab.
[x] Use the Terminal in your computer to:
[x] create a branch of yourTIY-Assignments repo called feature/03--method-to-the-madness
[x] switch to the new branch
[x] Create at least one file and directory as described above in Deliverables.
[x] Add and commit your work every hour or at every breakthrough (whichever comes first)
[x] Push your commits to Github
[x] In Github, open a PR fromfeature/03--method-to-the-madnessintomaster
[x] End of day wiki edit (please do these as your final tasks)
[x] Add your thoughts on this assignment to the Assignment Evaluation page.
[ ] Update Light Bulbs and Things I Don't Get Yet to reflect how you feel at the end of the day.
03 -- Method to the Madness
Description
Three programming challenges for today:
Fixnum
class which returns the factorial of a number.Fixnum
class to convert a number to its name in English.Objectives
Learning Objectives
After completing this assignment, you should begin to understand how to:
self
Performance Objectives
Deliverables
TIY-Assignments
wikiTIY-Assignments
repo, named appropriatelycode/
folder with files for each of the three (or four) coding challenges you undertakeTIY-Assignments
folder as on previous assignmentsRequirements
Tasks
TIY-Assignments
repo calledfeature/03--method-to-the-madness
feature/03--method-to-the-madness
intomaster