You can download the completed project here:
Within the zip file, you will find the java file, the text files, and the Microsoft Word document with testing information and conclusions.
To compile the project, you must run javac Calc.java
Once it is compiled, it must be run with the file arguments. For instance, you would run the cars one like this:
java Calc car.txt carRules.txt
And you would run the stocks one like this:
java Calc stock.txt stockRules.txt
I commented the entire project, and it meets all of the requirements.
Let me know if you have any questions. I'm here to help.
Please remember to rate my answer. Thank you so much and have a wonderful day!