File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes logic needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "logic needed " Watch "logic needed " New topic
Author

logic needed

sandeep Talari
Ranch Hand

Joined: Dec 24, 2007
Posts: 63
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
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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


SCJP, SCWCD.
|Asking Good Questions|
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41621
    
  55
Do you know how Roman numerals are constructed? If not, it would be a good first step to learn about them.


Ping & DNS - my free Android networking tools app
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
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.


Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Deepa Neela
Greenhorn

Joined: May 01, 2008
Posts: 6
http://www.leepoint.net/notes-java/examples/components/romanNumerals/romanNumeral.html
check out if this can help you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logic needed