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

 

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

Friends, Romans, Countrymen lend me your ear. We will soon have a program which will allow us Romans to do arithmetic using our numerals! PART ONE - Programmers please complete the code to receive a Decimal number and return a Roman numeral (string) FOR PART ONE we will not be concerned with changing 4 into "IV" but INSTEAD will return "IIII" example 16 will return XVI. Note the largest Roman character is M for 1000. Choose the hint for the other values and characters.


DecimalToRomanOne(2000) → "MM"
DecimalToRomanOne(1500) → "MD"
DecimalToRomanOne(46) → "XXXXVI"

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

public String DecimalToRomanOne(int num) }

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: 190 Post-solution available

Copyright Nick Parlante 2017 - privacy