Giter Site home page Giter Site logo

roman_numerals's Introduction

Roman Numerals Project

Application to transform roman numerals to integers.

Project Objective

Write a Ruby module to operate on roman numerals. Let's keep it all Ruby for now (instead of Rails), and use Rspec for testing.

Follow these steps to submit your code:

  1. Ask to have a folder created in the repo with your name.
  2. Clone the repository to your computer.
  3. Modify the files and commit changes to complete your solution (in your folder).
  4. Push/sync the changes up to GitHub.
  5. Create a pull request on the original repository to turn in the assignment.

Phase 1 Objective

Write a Ruby module to transform roman numerals to integers.

Examples

VII -> 7
XVI -> 16
LX -> 60


Phase 2 Objective

Expand your program to also do the reverse, transform integers into roman numerals.

Examples

7 -> VII
16 -> XVI
60 -> LX


Phase 3 Objective

Download 3Hub or some other file viwer and configure with AWS credentials.

  1. Use the CSV library to read some roman numerals from a file and transform them into integers.
  2. Read the file from a bucket in S3: (s3://sktraining.s3.amazonaws.com/roman_numerals/roman_numeral_sample.txt).
  3. Write results to a file in a bucket in S3: (s3://sktraining.s3.amazonaws.com/roman_numerals/YOURNAME).

Sample Input File

VII
IX

Sample Output File

7
9


Phase 4 Objective

  1. Write a program that can perform math on roman numerals.
  2. Read an input file of operations from S3 (s3://sktraining.s3.amazonaws.com/roman_numerals/roman_numeral_sample_operations.csv).
  3. Write results to a file in a bucket in S3: (s3://sktraining.s3.amazonaws.com/roman_numerals/YOURNAME).

Sample Input File

operator, operandA, operandB
add, VI, IX
divide, VI, III

Sample Output File

XV
II

roman_numerals's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.