+ 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.

20th Feb 2018, 8:27 PM
Nathan Bone
Nathan Bone - avatar
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.
21st Feb 2018, 2:04 AM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
+ 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$
21st Feb 2018, 1:36 AM
Mohammad Dakdouk
Mohammad Dakdouk - avatar