Giter VIP home page Giter VIP logo

fcc-javascript-algorithms-and-data-structures-projects-roman-numeral-converter's Introduction

fcc-javascript-algorithms-and-data-structures-projects-roman-numeral-converter

Roman Numeral Converter

JavaScript Algorithms and Data Structures Projects Roman Numeral Converter Convert the given number into a roman numeral.

Roman numerals | Arabic numerals

  • M 1000
  • CM 900
  • D 500
  • CD 400
  • C 100
  • XC 90
  • L 50
  • XL 40
  • X 10
  • IX 9
  • V 5
  • IV 4
  • I 1

All roman numerals answers should be provided in upper-case.

Tests

  • convertToRoman(2) should return the string II.
  • convertToRoman(3) should return the string III.
  • convertToRoman(5) should return the string V.
  • convertToRoman(9) should return the string IX.
  • convertToRoman(12) should return the string XII.
  • convertToRoman(16) should return the string XVI.
  • convertToRoman(29) should return the string XXIX.
  • convertToRoman(44) should return the string XLIV.
  • convertToRoman(45) should return the string XLV.
  • convertToRoman(68) should return the string LXVIII
  • convertToRoman(83) should return the string LXXXIII
  • convertToRoman(97) should return the string XCVII
  • convertToRoman(99) should return the string XCIX
  • convertToRoman(400) should return the string CD
  • convertToRoman(500) should return the string D
  • convertToRoman(501) should return the string DI
  • convertToRoman(649) should return the string DCXLIX
  • convertToRoman(798) should return the string DCCXCVIII
  • convertToRoman(891) should return the string DCCCXCI
  • convertToRoman(1000) should return the string M
  • convertToRoman(1004) should return the string MIV
  • convertToRoman(1006) should return the string MVI
  • convertToRoman(1023) should return the string MXXIII
  • convertToRoman(2014) should return the string MMXIV
  • convertToRoman(3999) should return the string MMMCMXCIX

fcc-javascript-algorithms-and-data-structures-projects-roman-numeral-converter's People

Contributors

miguellamas avatar

Watchers

 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.