PLEASE DONT COPY CODES FROM CHEGG OR ANY OTHER SITE. Make your own codes.
PLEASE DONT COPY CODES FROM CHEGG OR ANY OTHER SITE. Make your own codes.
ASSIGNMENT:
Create a Class for Roman Numerals
Create a class called RomanNumeral which has two private instance variables: the String value of the Roman numeral, and an int for the Arabic value. It should have a one-argument constructor that takes a String as a parameter for the Roman Numeral. For this project we will not do error checking. The constructor should set the Roman numeral instance variable, and convert the Roman numeral to Arabic and set the Arabic integer value. Provide get and set methods for the String RomanNumeral and a get method for the Arabic value. Other methods to include are equals, toString, and compareTo.
Use linked lists to store and sort RomanNumerals
Create a class called RomanNumeralList based on the linked list with head node as shown in lecture. The data in the nodes should be a RomanNumeral.
Create a class called UnsortedRomanNumeralList that extends RomanNumeralList. It should have an append method that takes a RomanNumeral as a parameter and adds it to the end of the list.
Create a class called SortedRomanNumeralList that extends RomanNumeralList. It should have a method called add which takes a RomanNumeral as a parameter and inserts that word into the list in a position so that the list remains sorted.
Read from the file and add to the sorted list
For each line in the input file, break the line into individual RomanNumerals (Strings) and insert each RomanNumeral into the unsorted list (using append), and into the sorted list (using add).
Display the results in a GUI with a GridLayout of one row and three columns. The first column should contain the original RomanNumerals, the second column the unsorted Arabic values, and the third column the sorted Arabic values.
Also do the following for project 2, you need to create a class for the list nodes, RomanNumeralListNode.
Submitting the Project.
You should now have the following files to submit for this project:
Project2.java RomanNumeral.java RomanNumeralGUI.java RomanNumeralList.java UnsortedRomanNumeralList.java SortedRomanNumeralList.java RomanNumeralListNode.java
Submit a jar file. Create a jar file called Project2.jar making sure that it contains source code (.java files) and submit that
FYI:
The output of the code should open up in a GUI PANEL
PLEASE PROVIDE COMMENTS ALONG WITH YOUR CODE

Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
