By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,305 Members | 1,614 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,305 IT Pros & Developers. It's quick & easy.

How to calculate tax?

P: 1
Ok, am new in this and have an assignment. I've read all I had to read and have been searching through the net and still don't have an answer, it may be simpler than I think.... How can I calculate tax? The idea is I'm creating a program that will calculate tax to an item. So far we've seen the basic arithmetic operands and I'm not sure if I just write 6% of item cost...

If anyone can guide me I'd really appreciate it.
Feb 24 '07 #1
Share this Question
Share on Google+
3 Replies

Expert 2.5K+
P: 3,652
Please post your question in its own thread, not in an announcement.
Feb 24 '07 #2

Expert 5K+
P: 5,000
This message has been moved to its own thread.
Feb 26 '07 #3

P: 1,806
Tax is a funny thing, and different throughout much of the world, so It's difficult to give an answer without more information.

If you want to add a percentage accross the board, however (which it sounds like you want to do), you would do it the standard mathematical way

Expand|Select|Wrap|Line Numbers
  2. costPrice = price * (1 + (taxRate/100))
Feb 26 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.