Programming
Use a GUI to open the file for displaying the Roman numerals
Modify your RomanNumeralGUI so that it will be a complete JFrame with a menu bar and menus.
There should be two menus: one called File and another called Convert. The File menu should have the menu items Open and Quit. The Convert menu should have one menu item that says “Roman to Arabic”. When chosen, a dialog box should be displayed asking the user to type in a Roman numeral. After receiving the Roman numeral, another dialog box should display the Arabic value. If the Roman numeral is not valid (see below) a dialog box should say so.
You will need a handler for the File menu, and another handler for the Convert menu. As mentioned in lecture, be sure when opening a file with the file menu handler that your ask for the absolute path to the file rather than just its file name (getAbsolutePath() rather than getName()).
Create an exception for illegal Roman numerals
Create a class called IllegalRomanNumeralException that extends IllegalArgumentException as shown in lecture. This exception should be thrown by the constructor of a RomanNumeral if there is an invalid the console, not placed in the GUI. This exception may be thrown when constructing a Roman numeral read from the file, or when trying to convert from Roman to Arabic.
Elitewriterhelp.com is an online academic writing platform that provides essay and assignment solutions to students from all nations around the world. Based in the United States, Elitewriterhelp.com assists students from over 100 countries with their assignments and essays.
The countries that Elitewriterhelp serves are Australia, Canada, New Zealand, United Kingdom (UK), United States (USA), Ireland, South Africa, Austria, Belgium, Bulgaria, Denmark, Finland, France, Germany, Greece, Hungary, Iceland India Italy Japan Liechtenstein Malta Netherlands Norway Poland Portugal Romania Slovakia Slovenia Spain Sweden Switzerland Turkey Ukraine Uzbekistan Vietnam.
Elitewriterhelp specialists offer custom-written papers covering various topics on different academic levels, such as High School/College/ University/Master/ Ph.D., depending upon the requirements of the customer’s individual assignment or project type. Through our services, you can get help in any subject from math problem-solving to proofreading and editing essays for spelling errors or simply helping with English class assignments for those non-native English speakers out there who need some extra help translating their papers into perfect English!
Whether it be research papers or just essay writing for an exam preparation course – we have you covered! We also specialize in providing customized thesis and dissertation writing services which include literature review analysis & composing high-quality content within your given timeline so you do not miss any important deadlines set by your professor or instructor! Our experts guarantee top-quality papers no matter what type of academic level they may be written at; whether it’s a college freshman student looking to pass his first history class or a graduate school student trying to finish her Ph.D. dissertation – EliteWriterHelp has got them covered!
In addition to this plethora of services offered through our website, we also provide professional consultation on various topics including personal branding advice; career development guidance; resume/CV design assistance; cover letter draft-building tips; informative speech guidance; data visualization techniques coaching & more! So whatever educational challenge lies ahead – EliteWriterHelp is here to provide appropriate solutions tailored exactly according to each customer’s individual needs and preferences!