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
- Host: GitHub
- URL: https://github.com/anyulled/kata-roman-numerals
- Owner: anyulled
- Created: 2024-01-23T09:45:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2026-03-05T10:15:04.000Z (4 months ago)
- Last Synced: 2026-03-05T14:42:45.316Z (4 months ago)
- Language: Java
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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 "";
}
}
```