Log in

No account? Create an account
05 November 2008 @ 11:17 pm
The Roman Numeral Calculator  
Hokie dokie.

In Software Design, our fourth project of the semester was a Roman Numeral calculator, which was intended to take roman numerals from the user, perform a few simple operations upon them, and return a result.

In every other project in this class, I've done the bare minimum.  But for some reason, when he gave us something so utterly charming and useless to do, I just went whole hog, and created a GUI and everything.  Then I downloaded JSmooth so that I could turn it into an executable.  If you're running Windows, you can run my calculator!  Unfortunately, you do have to have java installed on your machine.  What I really need to do is build an applet for it and just stick it online so that anybody can run it, but, uh... I'll do that later.  (I haven't programmed an applet in a couple of years...)

Here is a link to the zip file.  Unzip the jar and the exe files in there to any directory you like, just as long as they are saved in the same spot.  Then double click the exe file.

Begrudging thanks to toqueville who inspired me to put it through a rather grueling test run today.  toqueville, this is the latest version.  Please, anybody who tries it:  if you manage to break the computation OR the user input limits (the buttons will disable themselves rather than allow you to input an invalid number), let me know so I can fix it!

According to my professor, the Romans themselves were actually not that picky about how they entered their numerals... numbers such as "IIIX" and such were permitted.  I only say this so that the pundits among you may relax and know that the fact that my calculator doesn't handle such numbers is not due to any ignorance on my part.
Current Mood: giddygiddy
rogue equestrian: DH:: Gettin the Evil ONelvinborn on November 6th, 2008 05:56 am (UTC)
tis cute!

of course, since I fail at roman numerals, I keep making it fail at things that would give decimals. I will just go back to addition and multiplication. (I dun like subtraction for some strange reason?)
Wiseacreewin on November 6th, 2008 02:37 pm (UTC)
Hee. Yeah, it does integer division... it'll give you the whole number results, just not the decimal remainder.
(Deleted comment)
Wiseacreewin on November 8th, 2008 03:52 am (UTC)
Thank you! I'm... absurdly happy with it. :)