Simple program Query
Finding it hard to get started on a query I have been given which is about calculating an employees tax.
There are two types of employees, standard and self-employed. The following detials apply
Standard PAYE Employee
20% tax free, 20% @ 15% and the rest at 30%
Self-employed PAYE Employee
40% tax free, 20% on the rest
I need to have:
An Employee class
CalculateTax Method makes use of appropriate calculation
Create a Government class which has an array of employees
Extend user so it has a boolean (selfEmployed)
Iterate through array and calculate total tax from self employed and total
tax from standard
any help on this would be greatly appreciated!
Re: Please Help! - A Simple program Query problem??
Ok im trying to put the pieces together. If anyone can lend any sort of help it would be much appreciated. what i have so far is. Ive got 5 different class and im not sure how to join them?
I need to be able to get an employee from the array.
Check whether or not they are self-employed (using a Boolean).
Then apply the appropriate calculation to work out the tax on their pay.
And then display the answer.
|All times are GMT +5.5. The time now is 05:31.|