about | help | code help+videos | done | prefs |
Friends, Romans, Countrymen lend me your ear. We will soon have a program which will allow us Romans to communicate with the barbarians by converting our numerals into their numbers! - Programmers please complete the code to receive a Roman numeral (string) and return a Natural number. Please be advised that we will be concerned with changing "IV" into 4 example XIV will return 14. Note the largest Roman character is M for 1000. Choose the hint for the other values and characters. RomanToDecimal("MM") → 2000 RomanToDecimal("CDXCIV") → 494 RomanToDecimal("MMCMI") → 2901 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 194 Post-solution available
Copyright Nick Parlante 2017 - privacy