Help coderanch get a
new server
by contributing to the fundraiser
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
• Jeanne Boyarsky
• Ron McLeod
• Paul Clapham
• Liutauras Vilda
Sheriffs:
• paul wheaton
• Rob Spoor
• Devaka Cooray
Saloon Keepers:
• Stephan van Hulst
• Tim Holloway
• Carey Brown
• Frits Walraven
• Tim Moores
Bartenders:
• Mikalai Zaikin

# logic needed

Ranch Hand
Posts: 63
• Number of slices to send:
Optional 'thank-you' note:
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
• Number of slices to send:
Optional 'thank-you' note:
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
• Number of slices to send:
Optional 'thank-you' note:
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
• Number of slices to send:
Optional 'thank-you' note:

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
• Number of slices to send:
Optional 'thank-you' note:
http://www.leepoint.net/notes-java/examples/components/romanNumerals/romanNumeral.html