• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic needed

 
sandeep Talari
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • 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
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • 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.
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • 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.
 
Deepa Neela
Greenhorn
Posts: 6
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic