wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 41029
    
  43
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
 
Similar Threads
decimal part
Questions about switch ... case ?
java decimal multiplication
DecimalFormat drops the 0s after decimal point. I need to keep them.
How to find number of decimal places?