Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Adding Roman Numericals using Java programming

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding Roman Numericals using Java programming

    Please help me in Writing an program to add any 2 given Roman numerals together and return the results.

    [I don't want to convert Roman numbers to decimal numbers & then add together, then convert in to Roman numerials ]

    Is there any direct way to add roman numerials?

    Much appreciated in advance to slove this problem.

    For example: I + I = II
    III + I = IV

    Thanks
    Pushpas


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    590
    My Mood
    Sleepy
    Thanks
    10
    Thanked 87 Times in 80 Posts

    Default Re: Adding Roman Numericals using Java programming

    What have you tried? - Matt Gemmell

    Post your code and ask specific questions.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,135
    My Mood
    Mellow
    Thanks
    187
    Thanked 659 Times in 646 Posts

    Default Re: Adding Roman Numericals using Java programming

    In a general sense, No. What you describe is not possible, because the computer does not "think" in Roman Numerals. As a result, some conversion would have to be done to "teach" it to use Roman Numerals in basic math equations. Even if you found a third-party library that had already done the work for you, some conversion would exist in the library.

  4. #4
    Junior Member
    Join Date
    Feb 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Adding Roman Numericals using Java programming

    Thanks a lot Grebrannon..much appreciated for your advice.

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,135
    My Mood
    Mellow
    Thanks
    187
    Thanked 659 Times in 646 Posts

    Default Re: Adding Roman Numericals using Java programming

    You're welcome. Marking thread as solved, but add to it if you need to.

Similar Threads

  1. [SOLVED] Need help with loops and turning into roman numerals
    By Onlyname in forum What's Wrong With My Code?
    Replies: 12
    Last Post: September 6th, 2013, 06:22 PM
  2. Polymorphism Java Programming HELPP P.S. I am a beginner in Java Programming
    By judemartin99 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 20th, 2013, 02:21 PM
  3. Linked Lists Java Programming HELPP P.S. I am a beginner in Java Programming
    By judemartin99 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 20th, 2013, 02:19 PM
  4. How to identify a roman numeral
    By dunWorry in forum What's Wrong With My Code?
    Replies: 1
    Last Post: December 19th, 2010, 11:58 PM
  5. Roman Numbers
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 14
    Last Post: December 12th, 2009, 01:19 AM