Converting Arabic to Roman numerals
843785Oct 8 2008 — edited Oct 8 2008Hello all,
I'm very new to Java, just taking my first computer science semester. We're learning about the if, if/else, and switch statements at this point.....
My assignment is to take an Arabic integer from 0 to 3999 and convert it to Roman numerals. Now I am just stumped on how to begin. I've got the input taken care of, but I don't have a clue what logic to use to actually do the conversion. Is it something to do with mod? How would I find out if a number is one less unit than something else? I.E. 1590 is 10 less than 1600, so the computer would need to write XC. I'm very confused so any help at all is greatly appreciated. :)