cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Calculation problem
Calculation problem
Jul 16, 2011 at 12:42pm UTC
sakon93
(5)
I've to create a program that calculate tax based on gross pay. On the first 200$ the tax will be 10% of the pay, on the next 400$ the tax will be 15% and anything over 600$ will be 20%.
Jul 16, 2011 at 5:34pm UTC
hamsterman
(4538)
if you have more than 200, add 20 to tax and subtract 200 from money
otherwise add 10% of the money you have to the tax and set money to 0
then repeat the exact same thing with 400.
then do the 'otherwise' part with 600.
Topic archived. No new replies allowed.