create a Java program that will be used to calculate ROI on three different pieces of equipment
Question:
create a Java program that will be used to calculate ROI on three different pieces of equipment and sort it from best to least ROI. The program must prompt the user to enter the brand name of the equipment, the gain, and the cost for each piece of equipment.
In this coding assignment, you will express searching and sorting algorithms to return the ROI best to least for each piece of equipment. You must apply algorithmic design techniques in developing your program so that you can ensure the user will receive a correctly sorted list.
I've created the program and it works except for one error that keeps coming up and I'm not sure how to write that part of the code to correct the issue. I'm listing the code below and uploading a screenshot to show were I'm having issue with the code. Any and all help is much appreciated.
The information I have to be able to input into this program is:
Operations and Supply Chain Management
ISBN: 978-0078024023
14th edition
Authors: F. Robert Jacobs, Richard Chase