+ 4
Tax calculator in c++
I need some help creating a tax rate calculator in c++ I’ve got some basic c++ knowledge but could use some help as to how to start. I need the tax to raise depending on how much their annual salary is then to subtract the tax giving the annual salary after tax any ideas would really help.
2 odpowiedzi
+ 16
this may help you:
note: input must be on separate lines:
tax %
salary
ex:
5
1000
https://code.sololearn.com/cOuDWXT60816/?ref=app
try to make update that fits your conditions.
+ 13
first you need to specify the % of tax to get from the salary.
then you can calculate the rate:
rate =( tax% * salary ) /100
then to subtract the rate from the salary.
ex:
tax % = 5%
salary = 1000$
then rate will be:
rate =( 5 * 1000) /100 = 50$
finaly, annul salary after tax = 1000 - 50 = 950$