This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 2796
    
    9

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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Do you know how Roman numerals are constructed? If not, it would be a good first step to learn about them.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: logic needed
 
jQuery in Action, 3rd edition