1 Replies - 6855 Views - Last Post: 26 April 2009 - 09:50 AM Rate Topic: -----

#1 Kokila.N  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-April 09

code to calculate the income tax

Post icon  Posted 26 April 2009 - 09:45 AM

How to calculate the incometax to be paid when range is given? using if,for loops?
Is This A Good Question/Topic? 0
  • +

Replies To: code to calculate the income tax

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 5201
  • View blog
  • Posts: 13,946
  • Joined: 18-April 07

Re: code to calculate the income tax

Posted 26 April 2009 - 09:50 AM

It is site policy that you first provide a "best effort" attempt at solving the problem yourself. This means we like to see what kind of coding you have done to try and solve the problem before we can jump in and assist.

But as for an answer, income tax can be a complicated thing to figure out. With credits, deductions what you can claim and what you can't.

However, if you are looking at a straight tax rate given a scale based on a person's income, then it is just a matter of knowing the scale, knowing the income and making decision logic. I am not sure that would necessarily involve a for loop. More if-then logic or switch statements.

We won't know what you are trying to do until you post more information and some of the code you have been working on. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1