id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

andersoniii.edwin@cusd80.com > RomansToSum
prev  |  next  |  chance

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 and finding the SUM! - Programmers please complete the code to receive TWO Roman numeral (strings) and return the Natural number sum. Please be advised that we will be concerned with changing "IV" into 4 example XIV + X will return 24. Note the largest Roman character is M for 1000. Choose the hint for the other values and characters.


RomansToSum("M", "M") → 2000
RomansToSum("CDX", "CIV") → 514
RomansToSum("MM", "CMI") → 2901

...Save, Compile, Run (ctrl-enter)

public int RomansToSum(String a, String b){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 195 Post-solution available

Copyright Nick Parlante 2017 - privacy