This is the code:
This is whats printed:Code:double getTotal(){ return (double) BSALARY + getTAllowance() + getEAllowance() + getSOO(); }
Annual allowance: 106770
Elecrorate allowance: 27300
Salary of office: 80077.5
Travel Allowance: 2040
-----------------------------------
Total: 216188
The total is the Annual allowance,Electorate allowance and Salary of office added to gether. As seen in the function getTotal()
The problem is where does the .5 in the Salary of office go?