So I am a beginner to c++ well I suppose this is obvious. I just need help with a code for this project that involves me writing a program that asks the user for their annual gross salary. Then computes the amount of income tax to be collected using the tax code of 1913. The original tax code was very simple, tax was calculated as follows:
1 percent on the first $50,000
2 percent on the amount over $50,000 up to $75,000
3 percent on the amount over $75,000 up to $100,000
4 percent on the amount over $100,000 up to $250,000
5 percent on the amount over $250,000 up to $500,000
6 percent on the amount over $500,000
But this tax code did not consider single nor married nor were there any deduction.
I mean if you have to do it by hand you'll be forced to actually think about what you're doing, and you'll work out how to program it. This is what programming is. All that junk with syntax and headers is just the notation used. Programming is thinking about problems in such a way that the solution lends itself to a programmatic solution.