Question: Utilize a Java LinkedList to input the brand name of the equipment along with the equipment's corresponding gain and cost. The input should be completed

Utilize a Java LinkedList to input the brand name of the equipment along with the equipment's corresponding gain and cost. The input should be completed by the user either via keyboard or via file. As a last resort, the data can be hard-coded into the program.

The input for this calculation is in the Gains and Costs for Equipment table.

Utilize the ROI calculation (below) with the data from the LinkedList. You may select any of the sorting algorithms from Chapter 1 of Data Structures Essentials to sort the ROI from best to least return.

The calculation for Return on Investment Calculation (ROI) is as follows:

ROI = (Gain from Investment - Cost of Investment) / Cost of Investment

Sort from the best to least ROI, and display to the screen the equipment name, gain, cost, and calculated ROI. The program must include the code to inform the user that the program has completed processing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!