• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

logic needed

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello , anybody can answer me the logic of the following question posed

Q. 1. Write a program that converts a decimal number to Roman number. Decimal Number is accepted as command line input at the time of execution
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I would have loved to reply to your post but here at Javaranch, we don't Do your homework.
So do it yourself, if you stuck somewhere in between , we will definitely help.



Hope this helps
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you know how Roman numerals are constructed? If not, it would be a good first step to learn about them.
 
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paraphrased from Sandeep Talari's original post:
Hello, can anyone answer for me the logic of the following question...

Q. Write a program that converts a decimal number to Roman number. A Decimal Number is accepted as command line input at the time of execution.



wiki on Roman Numerals

Step 1, make an assuption about the size of the input.
Will it exceed 1000? 4000? 100? 1000000?

Step 2, make an assuption about the input format.
Is "1,000" acceptable?

Then get to the real work.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://www.leepoint.net/notes-java/examples/components/romanNumerals/romanNumeral.html
check out if this can help you
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic