Question: You have been hired as a programmer by a company that develops video games. You are required to create classes and objects that will represent

You have been hired as a programmer by a company that develops video games. You are required to create classes and objects that will represent the elements of the game. You are also required to use object composition to create complex objects.

Create class branch that has the following attribute (use all the required methods to support your class):

1. BranchID

2. BranchManager

3. Incomes
4. Expenses

Based on your understanding on Linked Lists, create CompanyList to enable the following:

Add Branch

Remove Branch

Get Branch

Update Branch

Get the incomes for a specific Branch.

Get the expense for a specific Branch.

Get the profit for a specific Branch.

Get the Branch details of the branch with maximum incomes.

Get the Branch details of the branch with minimum incomes.

Get the Branch details of the branch with maximum expenses.

Get the Branch details of the branch with minimum expenses.

Get the Branch details of the branch with maximum profit.

Get the Branch details of the branch with minimum profit.

Sort the Branches in ascending order based on their incomes.

Sort the Branches in ascending order based on their expenses.

Sort the Branches in ascending order based on their profit.

Print the list.

((((without built in LinkedList))))

without array list

single code with a valid output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is an implementation in Java using linked lists without using builtin LinkedList or ArrayList c... View full answer

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!