Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Doll18_ OCCUEL_1_L4UCIL.HU Payel O @ Q 0 @ Q Search Your task is to write a Java program that will be used to calculate ROI
Doll18_ OCCUEL_1_L4UCIL.HU Payel O @ Q 0 @ Q Search Your task is to write a Java program that will be used to calculate ROI on three different pieces of equipment and sortit 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. CPT307 Data Structures and Algorithms 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. Utilize a LinkedList class to create the list. Include comments for each section of the program. You may select variable names as long as proper Java syntax is used. You will also submit your source code in a zip file. Summative Assignment: Calculate Return on Investment Gains and Costs for Equipment Equipment Gain Cost 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. CISCO 2900 Series Router C2921-VSEC/K9 Integrated Services Router $1200.00 $3965.99 The input for this calculation is in the Gains and Costs for Equipment table. Ubiquiti ERPOE-5 EdgeRouter PoE Advanced 5-Port Router $1073.00 $900.00 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. Adtran 424390851 Network Equipment $1150.00 $1973.99 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started