Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Converting Arabic to Roman numerals

843785Oct 8 2008 — edited Oct 8 2008
Hello 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. :)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2008
Added on Oct 8 2008
3 comments
233 views