I am working on an arabic to roman numeral converter. The following code works, if the user doesn't enter any zeroes and only 1 or less digits are greater than 4 in value. I realize this code is kind of convoluted, so I'm about ready to take what I have as a lesson and start over. Problem is, I'm not sure what will work better. Maybe ya'll can criticize the hell out of this code to help me make some new ideas. Thanks...
well, this is just a shortcut. There technically is no roman numeral for more than three thousand, because there is no digit for five thousand. Yes I know in modern roman numerals you can use a V with a line over it, but that's outside the scope of this program. Roman Numerals are basically in base 5, without a zeroes placeholder, so for each digit I count the low part and the high part then redirect it to the proper character. For thousands, I gave it the low and high parts. This will give you MMMMMMMMI for 8001, which is wrong, but the program states this anyway.
actually I had a lot of errors where I copied and pasted the different if blocks. It actually works now, but it still seems like there should have been an easier method.