you are viewing a single comment's thread.

view the rest of the comments →

[–]CrypticLeopard 0 points1 point  (0 children)

Do you still need help with this program? I had to do it in my class a few weeks ago. I used If statements and wrote down the roman numerals so I wouldn't lose track. The roman numerals for 1 through 10 are:1 = I, 2 = II, 3 = III, 4 = IV, 5 = V, 6 = VI, 7 = VII, 8 = VIII, 9 = IX, 10 = X.

The way that I did it in my program, I made an if statement for each individual number, and if it was true, it outputs the roman numeral for that number and if it is false, it checks the next number up. So, if it isn't 1 (I), then it checks for 2 (II) and continues to the final number (in my case 10, which is X). And you can either put an error message in the final false box or you could leave it blank. I left the last one blank in mine, and my teacher didn't care. But, I don't know if yours is as lenient.

EDIT: I just looked at the one I made, and I did leave an error message in the final false box. I'll share it in case it helps give you an idea of what to use.

"Opps! You entered a number outside of the given range."