Question: Question 1 [ 2 8 marks ] Background Return on Investment ( ROI ) is a popular profitability metric when evaluating the forecasted profitability of

Question 1[28 marks] Background Return on Investment (ROI) is a popular profitability metric when evaluating the forecasted profitability of different investments. ROI is expressed as a percentage and is calculated by dividing an investment's net profit (or loss) by its initial cost or outlay. ROI can be used to rank investments in different projects objectively. The basic formula for determining the ROI of an investment is: ROI = Net Income / Cost of Investment x 100 Scenario An investor requested that you create a simple application to help him compare two mutually exclusive investments' and choose the more profitable project based on the ROI formula above. Required Using Java, create a GUI application that captures the initial investment and the expected revenue for two projects. The programs outputs are the two ROI values (shown in a label or text area) and a message box showing a recommendation of the better option to the investor. Hints: Assume the projects have equal risk, have the same duration, and are mutually exclusive. Figure 1 shows an example of a GUI for your consideration. 3 HCLT107-1-Jul-Dec2024-FA3-StM-V2-15052024 This is not the model answer. Figure 1 Rubric Criteria Description Marks Variable Declarations Variables are declared and initialised correctly using meaningful data names. 2 marks Input The necessary input values are correctly prompted. 1 mark Calculations ROI is correctly calculated using the given formula for the two projects. 6 marks Output The correct output is displayed on the screen, showing the two ROI values, and a recommendation in a message box. 5 marks Design Appropriate GUI design with functioning controls for data capture. 5 marks 4 HCLT107-1-Jul-Dec2024-FA3-StM-V2-15052024 The clear / reset, exit, and process controls are functional. 3 marks Coding standards The logic efficiently processes inputs; code is presented in a readable format with appropriate comments, indentation, and white space.

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!