Doing another assignment that I'm currently having a little trouble with at the moment, we need to create a tax calculation program that will total incomes, total expenses and calculate the tax payable.
Now I'm able to give the user added incomes, but it requires me too create many different variables, and giving addition too all those variables, I'm sure there's a easier and cleaner way that I don't know how to do it from.
Here's a video my mentor has given me as a demonstration.
View My Video
Also I have a link too what I could come up with right now.
http://www.2shared.com/file/7dD6zOZf/a2-startup.html
from what i figured out you add your incomes till you hit the "-" key and hitting "ok" takes you too the next step the "expenses" once you've done this it subtracts the total amount, like for example income-expense=tax payable(taxable income)
With this total amount we need the program too give us a maths calculation through this table that my mentor gave me:
Taxable Income $ ----------- Tax on this income
$ 0-18200 ----------- $0
$ 18201-37000 ----------- $19cents for each $1 over 18200
$37001-80000 ----------- $3572+32.5cents for each $1 over 37000
$80001-180,000 ----------- $17547 plus 37cents for each $1 over 80000
$180,001 and over ----------- $54547 plus 45cents for each $1 over 180,000
So far I've gotten a massive headache on trying too get this thing right and its killing me right now, if anyone could possible divide some time to help a programmer in frustration just trying to learn to get this thing right, I would appreciate it alot!