- Ella Tanttu
- Aaron Minnick
- Ryan Ashby
- CSS
- HTML
- Javscript
- Jest
Click here to see exercise: https://www.learnhowtoprogram.com/introduction-to-programming/arrays-and-looping/practice-roman-numerals
- Navigate to https://github.com/aaronminnick/roman-numerals.git in your browser
- Clone this repository to your desktop
- Navigate to the top level of the directory
- In the terminal, run the command
npm install
to recreate environment. - Open files in VS Code to edit
No known issues
{MIT Copyright (c) 2021 Ella Tanttu, Aaron Minnick, Ryan Ashby} (https://opensource.org/licenses/MIT)
Ella Tanttu ellajtanttu@gmail.com Aaron Minnick abminnick@gmail.com Ryan Ashby rjapsu160@gmail.com
- Write a method to convert numbers into Roman numerals. Roman numerals are based on seven symbols:
Symbol | Value |
---|---|
I | 1 |
V | 5 |
X | 10 |
L | 50 |
C | 100 |
D | 500 |
M | 1000 |
- The most basic rule is that you add the value of all the symbols: so II is 2, LXVI is 66, etc.
- The exception is that there may not be more than three of the same characters in a row. Instead, you switch to subtraction. So instead of writing IIII for 4, you write IV (for 5 minus 1); and instead of writing LXXXX for 90, you write XC.
- You also have to separate ones, tens, hundreds, and thousands. In other words, 99 is XCIX, not IC. You cannot count higher than 3,999 in Roman numerals.