Java Assignment

Order Description

Student should use the spacebar in the IDE (jGRASP, Netbeans) and indent the code for readability and NOT the tab key.

Your program should include your name, the date the program was written, along with comments relating to the program objective.

10 POINTS - PROGRAMMING ASSIGNMENT USING CLASSES AND TWO-DIMENSIONAL ARRAYS. (10 points)

Cost Analysis is essential when reviewing product lines in a company or organization. It provides information to help management to review product line sales, costs, as well as net income (or breakeven, or net losses) and decide if a product line should be discontinued, replaced, etc. To this end goal, a simple information system must be created to help in this decision-making process to analyze various products lines.

The data for various product lines are listed below.

Product A Product B Product C Product D Product E

Sales 550,000.00 225,000.00 10,000.00 95,000.00 2,000.00 Variable Costs 24,000.00 10,000.00 4,000.00 2,500.00 1,500.00 Contribution Margin Less Fixed Expenses Salary Allocation 10,000.00 5,000.00 4,000.00 4,000.00 2,000.00 Marketing 450.00 200.00 400.00 900.00 700.00 Utilities 200.00 300.00 600.00 230.00 100.00 Rental Fees 500.00 300.00 400.00 300.00 200.00 Insurance 100.00 150.00 200.00 300.00 300.00 General Expenses 500.00 200.00 400.00 750.00 900.00 Total Fixed Expenses Net Income (breakeven/loss)

The product lines class must be able to handle the data allocated into a two-dimensional array. The class should also provide additional room for growth should more product lines be added. The class must also be able to handle and store the calculations (Contribution Margin, Fixed Expenses, as well as the Net Income (or breakeven or loss) into the two-dimensional array. The product lines class should also provide operations to allow the user to obtain all of the information for a specific product line (queries). Students should search the internet for the formulas as needed. The Product lines class must be a separate .java class file from the GUI,

In terms of the GUI program(s) to the class, it must allow the user to build the two-dimensional array to the product lines class. Additionally, the GUI program(s) should allow the user to interface with the product lines class in order for the product lines class to perform various queries and display the results to the user. You can use simple input and output GUI’s (System.out or JOptionPane) or create more sophisticated GUI components. The displays/queries are indicated below.

Show all of the information regarding each product line in which there is a net income.

Show all of the information regarding each product line in which there is a break even.

Show all of the information regarding each product line in which there is a net loss.

Show all of the information regarding each product line in which the salary allocation is greater than 2,000.00 dollars.

Show the total sales, variable expenses, contribution margin, all of the fixed costs, as well as the net income for all of the product lines combined.

Show all of the information regarding each of the product lines in terms of its percentage net income (or breakeven or loss) contribution to the total income for all of the product lines combined.