You have been hired as a programmer by a company that develops video games. You are required
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 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
Sales Force Management Leadership Innovation Technology
ISBN: 9781138951723
12th Edition
Authors: Mark W. Johnston, Greg W. Marshall