Appendix G IT/210 Version 5

1

CERTIFICATE OF ORIGINALITY: I certify that this paper, which was produced for the class identified above, is my original work and has not previously been submitted by me or by anyone else for any class. I have received no outside help in the preparation of this assignment except for that provided by my instructor or Axia college. This paper includes no trademarked material, logos, or images from the Internet, which I do not have written permission to include. I further agree that submitting this paper shall have the same validity as my handwritten signature.

999.00 is $225.99 0. 4 5 .999. or $305.00 plus 16% of excess salary over $1. 5 0. Therefore.00 (that is. Salary Range in Dollars Base Tax in Dollars Percentage of Excess 1 .99 5.99 8.500.499.00 15 % 16 % 18 % 20 % 25 % Name of program: Total Tax Program My program is designed to compute the total tax based on the employee’s salary.000.00-14.00-7.999. 3 4 .500.00 825.00 225. 1 2 . Main Module Declare Employee Salary as String Declare Total Tax as Real Write Total Tax Program Write This Program Computes the Total Tax for Employees Call Input Data Module Call Salary Range Module Call Base Tax Module Call Excess Salary Module Call Excess Percentage Module Call Calculations Module Call Output Module End Program .99 1. the second line of the table specifies that tax due on a salary of $2. 16% of $500.Appendix G IT/210 Version 5 2 Associate Program Material Appendix G Sequential and Selection Process Control Structure In the following example. 2 3 .999.00 + $80.000.00.00-2.00-1.00.000. the total tax is $225.00).99 3.00 465.000.00-4.00 1425.

999.500.99 THEN Salary Range = 4 IF Employee Salary = 8.00 Excess Salary Module IF Salary Range = 1 THEN IF Salary Range = 2 THEN IF Salary Range = 3 THEN IF Salary Range = 4 THEN IF Salary Range = 5 THEN Excess Excess Excess Excess Excess Salary = Employe Salary “ 0.000.00 to 4.999.00 Percentage Percentage Percentage Percentage Percentage = 15% = 16% = 18% = 20% = 25% Excess Percentage Module IF Salary Range = 1 THEN Excess IF Salary Range = 2 THEN Excess IF Salary Range = 3 THEN Excess IF Salary Range = 4 THEN Excess IF Salary Range = 5 THEN Excess Calculations Module Declare Total Tax as Real Set Total Tax = Excess Percentage* Excess Salary + Base Tax Output Module Write Employee Salary is: $† Employee Salary Write Base Tax is: $” Base Tax Write Excess Salary is: $” Excess Salary Write Percentage of Excess is Excess Percentage Write Total Tax is: $ TotalTax .00 to 14.000.999.00 to 7.00 to 2.499.000.00 Salary = Employee Salary 3.00 Base Tax = 465.99 THEN Salary Range = 2 IF Employee Salary = 3.00 Salary = Employee Salary 1.00 THEN Salary Range = 5 Base Tax Module IF Salary Range = 1 IF Salary Range = 2 IF Salary Range = 3 IF Salary Range = 4 IF Salary Range = 5 THEN THEN THEN THEN THEN Base Tax = 0.00 Salary = Employee Salary 5.000.00 Base Tax = 825.Appendix G IT/210 Version 5 3 Input Data Module Write what is the employee’s salary? Input Employee Salary Salary Range Module IF Employee Salary = 0.00 to 1.000.000.99 THEN Salary Range = 3 IF Employee Salary = 5.99 THEN Salary Range= 1 IF Employee Salary = 1.999.00 Base Tax = 1425.00 Base Tax = 225.500.000.99 THEN Salary Range = 5 IF Employee Salary > 15.00 Salary = Employee Salary 8.

650.125.33 Percentage of Excess is: 20% Total tax is: $ 1.33 Employee Salary is: $9. What is the employee’s salary? $9.00 Excess salary is: $1.31 Employee Salary is: $5. What is the employee salary? $5.82 Employee Salary is: $1.425.00 Excess salary is: $825.97 End program .125.125.33 Base Tax is: $1. What is the employee’s salary? $1.825.00 Excess salary is: $173.159.31 Base Tax is: $825.06 Test 2 Total Tax Program This Program Computes The Total Tax For Employees.159.97 Percentage of Excess is: 15% Total tax is: $173.31 Percentage of Excess is: 20% Total tax is: $ 990.07 Test 3 Total Tax Program This Program Computes The Total Tax For Employees.825.Appendix G IT/210 Version 5 4 Test 1 Total Tax Program This Program Computes The Total Tax For Employees.82 Base Tax is: $0.

Sign up to vote on this title
UsefulNot useful