An accountant is setting a payroll system for a small firm having 5 different ra
ID: 3647231 • Letter: A
Question
An accountant is setting a payroll system for a small firm having 5 different ranges of salaries up to $150000, as shown in table below. Each table line shows the base tax amount (Column 2) and tax percentage (Column 3) for a particular salary range (column 1). Based on a given salary, you can calculate the taxes paid by adding the base tax for that salary range to the product of percentage of excess and the amount of salary over the minimum salary for that range. For example, the second line of the table specifies that the tax due on a salary of $ 20000.00 is $2250 plus 16% of the excess salary over $15000 (i.e. 16 % of (20000 - 15000) or $800.00). Therefore, the total tax due = $2250.00 + $800.00 = $3050.00 For this program, input the Name F of the employee and the salary from the keyboard. Then display the Name F of the employee, Salary, Base Tax, Amount of Percentage of excess tax, and Total Taxes. You must use self descriptive variable Name for calculations, to store and print all the values.Explanation / Answer
#include using namespace std; class accountant { public: string NameF; float salary; float basetax; int pot; float apet; float ttax; }; int main() { accountant obj; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.