Monday, May 24, 2010

I have to write a numbers convert to roman numerals for c programming and pseudocode?

plz help me i have to write a program using c and pseudocode... numbers converting to roman numerals just basic will do





TY

I have to write a numbers convert to roman numerals for c programming and pseudocode?
I hope you aren't expecting a full program here. What part don't you know how to do?
Reply:Maybe some type of array that replaces each number with the roman numeral. Think it out.
Reply:start at the largest number you're going to handle, say 100s.





divide your number by 100 and that's how many Cs you'll have.





Then divide by 50 and add that amny ls.





Then divide by 10 and add that many Xs





etc.





You'll have to account for special situations like IX, IV, etc.


No comments:

Post a Comment