Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How would I put the contents of this file it into a linked list? The file contai

ID: 3731025 • Letter: H

Question

How would I put the contents of this file it into a linked list?

The file contains lines of either a Roman Numeral or an Arabic Numeral

The lines should follow this format : <Roman numeral field><space><Arabic numeral field><new line>

Roman numeral field – 15 characters -

Arabic numeral field – 4 characters

If a line only contains a Roman Numeral it needs to be converted into an Arabic Numeral and vice versa( I have already done this part)

My question is how would I put the contents of a line into a linked list if it contains a Roman Numeral or an Arabic Numeral

File input begins:

Explanation / Answer

1)Do you need only Roman Numeral or an Arabic numeral as a node in linkedlist?

2) Or you need a Roman Numeral <space> ArabicNumeral as a node in linked list?

if 2 --> below is your answer or please clarify your question in comments. I will give you accurate answer.


Usually in Java : we make object of values with Roman <space> Arabic Numerals and add it as generic node to linked list .(I can provide you code but you have not specified programming language.)