Skip to content

A ruby project to practice working with classes, variables, methods, and test-driven development. Program transforms numbers into written words.

Notifications You must be signed in to change notification settings

vanmars/numbers_to_words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numbers to Words

22 September 2020

A ruby project to transform numbers into words

By Vanessa Stewart and Brycen Bartolome

Description

This is project for Epicodus to practice using Ruby hashes and classes. The program takes in a number and returns that number into written words.

Specifications

Spec Behavior Input Output
1 Program takes a number and turns it into a string. 1 "1"
2 Program splits string into an array. 1 [1]
3 Program turns numbers 0-9 into words. 1 "one"
4 Program turns numbers 10-19 into words. 11 "eleven"
5 Program turns numbers 20-29 into words. 21 "twenty one"
6 Program turns numbers 20 - 99 into words. 99 "ninety nine"
7 Program turns numbers 100 - 999 into words. 101 "one hundrend one"

Setup/Installation Requirements

  • Clone this project using the 'git clone' command in terminal/command line.
  • Navigate to the cloned folder and run 'bundle' in your command line.
  • Open the cloned repo in a text editor of your choice.
  • To run tests: While in the root directory of the project, run 'rspec' in your command line.

Known Bugs

There are no known bugs at this time.

Technologies Used

  • Ruby
  • Gems: rspec, pry, rack

License

Copyright (c) 2020 {Vanessa Stewart, Brycen Bartolome, Awesome Sauce Enterprises}

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A ruby project to practice working with classes, variables, methods, and test-driven development. Program transforms numbers into written words.

Topics

Resources

Stars

Watchers

Forks

Languages