Question: Question 1 [ 2 8 marks ] Background Return on Investment ( ROI ) is a popular profitability metric when evaluating the forecasted profitability of
Question 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 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 shows an example of a GUI for your consideration. HCLTJulDecFAStMV This is not the model answer. Figure Rubric Criteria Description Marks Variable Declarations Variables are declared and initialised correctly using meaningful data names. marks Input The necessary input values are correctly prompted. mark Calculations ROI is correctly calculated using the given formula for the two projects. marks Output The correct output is displayed on the screen, showing the two ROI values, and a recommendation in a message box. marks Design Appropriate GUI design with functioning controls for data capture. marks HCLTJulDecFAStMV The clear reset, exit, and process controls are functional. 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
