Write two Java algorithms for a stock application

Job ID: 33858494

Budget: ₹12,500 – ₹37,500 INR

Problem Statement:
Write two Java algorithms to achive the following stock related requirements, based on the terminologies, conditions and inputs given below.

Algorithm 1:
Find incess and excess, net amount, risk based on given initial base and limit

Algorithm 2:
Find share amounts from the excess for n number of share holders

Terminologies:
1. broker - one who collects the stock amount
2. share holder - one who gets the stock amount
3. incess - amount held by broker
4. excess - amount given to share holders
5. risk - amount risked by broker to hold more amount
6. token - number against which stock amount is collected (from 000 to 999)
7. single token - number with single digit (eg: 000, 111, 222, ...)
8. double token - number with double digits (eg: 001, 010, 100, ...)
9. triple token - number with all diff digits (eg: 012, 013, 987, ...)
10. double group - list of double numbers with diff combinations of same digits (eg: 001, 010, 100)
11. triple group - list of triple numbers with diff combinations of same digits (eg: 012, 021, 102, 120, 201, 210)
12. input entry - entry of token and corresponding abount along with commision (eg: for the commission of 45%, the entry is [token, direct-amount, indirect-amount | 000, 50, 725])
13. direct amount - amount for the token
14. indirect amount - amount for the group
15. initial base - a given amount to start the risk calculation (eg: 150 for direct token and 750 for indirect token)
16. limit - risk amount at which iteration is stoped
17. incrementing base - direct base is incremented by 1 and indirect base is incremented by 5
18. bonus - incentive given for amount held (eg: 400 as direct bonus and 80 as indirect bonus)

Conditions:
Pre-algorithm 1 - Convert direct amount to indirect amount
Pre-algorithm 2 - Convert indirect amount to direct amount
Pre-algorithm 3 - Convert direct base to indirect base
Pre-algorithm 4 - Convert indirect base to direct base
Algorithm 1 - Find incess and excess, net amount, risk based on given initial base and limit
Algorithm 2 - Find share amounts from the excess for n number of share holders

The complete details are given in the attached file.