An open API service indexing awesome lists of open source software.

https://github.com/anyulled/kata-roman-numerals

Roman numerals Kata
https://github.com/anyulled/kata-roman-numerals

Last synced: 3 months ago
JSON representation

Roman numerals Kata

Awesome Lists containing this project

README

          

# Roman Numerals Kata

This is a repository for exercising TDD.

## Roman notation

| Number | Numeral |
|--------|---------|
| 1 | 5 |
| 5 | V |
| 10 | X |
| 50 | L |
| 100 | C |
| 500 | D |
| 1000 | M |

**Recommendation:** start with the most basic examples,
involving the usage and concatenation of symbols and then proceed to the most advanced ones.
Let the design emerge from the test cases and not otherwise.

## Examples

| Number | Numeral |
|--------|---------|
| 4 | IV |
| 9 | IX |
| 29 | XIX |
| 80 | LXXX |
| 294 | CCXCIV |
| 2019 | MMXIX |

You should create the following class with a single method from calculation

```java
package com.ingram;

public class DecimalToRomanConverter {

public static String toRoman(int decimal) {
//Your business logic here
return "";
}
}
```