Saturday, September 21, 2019

It 210 Week 3 Checkpoint Tax Calculation Essay Example for Free

It 210 Week 3 Checkpoint Tax Calculation Essay NetSalary = GrossSalary – BaseTax – (GrossSalary – BaseSalary * AddlTax) If GrossSalary 0.00 1,500.00 Then BaseTax = 0.00 BaseSalary = 0.00 AddlTax = (Gross Salary – BaseSalary) * 0. 15 End if If GrossSalary 1,500.00 3,000.00 Then BaseTax = 225.00 BaseSalary = 1,500.00 AddlTax = (Gross Salary – BaseSalary) * 0.16 End if If GrossSalary 3,000.00 5,000.00 Then BaseTax = 465.00 BaseSalary = 3,000.00 AddlTax = (Gross Salary – BaseSalary) * 0.18 End if If GrossSalary 5,000.00 8,000.00 Then BaseTax = 825.00 BaseSalary = 5,000.00 AddlTax = (Gross Salary – BaseSalary) * 0.20 End if If GrossSalary 8,000.00 15,000.00 Then BaseTax = 1,425.00 BaseSalary = 8,000.00 AddlTax = (Gross Salary – BaseSalary) * 0.25 End if If GrossSalary 15,000.00 Then BaseTax = 1,425.00 BaseSalary = 8,000.00 AddlTax = (Gross Salary – BaseSalary) * 0..25 End if GrossSalary – BaseTax – (GrossSalary – BaseSalary * AddlTax) End CaclulateNetSalary Module DisplayGrossSalaryBaseTaxAddlTaxNetSalary Module Print â€Å"Employee Gross Pay, Tax and Net Pay Breakdown† Print â€Å"Gross Salary† GrossSalary Print â€Å"Base Tax† BaseTax Print â€Å"Additional Tax† AddlTax Print â€Å"Net Salary† * NetSalary End DisplayGrossSalaryBaseTaxAddlTaxNetSalary Module Test Values Input Expected Output Comments Salary = 0.00 Tax = 0.00 Lowest salary in salary range 1 Salary = -1,000.00 Error Message Out of range condition Salary = 1,000.00 Tax = 150.00 Midrange salary in salary range 1 Salary= 1,499.99 Tax = 225.00 Highest salary in salary range 1 Salary = 1,500.00 Tax = 225.00 Lowest salary in salary range 2 Salary = 2,250.00 Tax = 345.00 Midrange salary in salary range 2 Salary = 2,999.99 Tax = 465.00 Highest salary in salary range 2 Salary = 3,000.00 Tax = 465.00 Lowest salary in salary range 3 Salary = 4,000.00 Tax = 645.00 Midrange salary in salary range 3 Salary = 4,999.99 Tax = 825.00 Highest salary in salary range 3 Salary = 5,000.00 Tax = 825.00 Lowest salary in salary range 4 Salary = 6,500.00 Tax = 1,095.00 Midrange salary in salary range 4 Salary = 7,999.99 Tax = 1,425.00 Highest salary in salary range 4 Salary = 8,000.00 Tax = 1,425.00 Lowest salary in salary range 5 Salary = 11,500.00 Tax = 2,300.00 Midrange salary in salary range 5 Salary = 14,999.99 Tax = 3,175.00 Highest salary in salary range 5 Salary = 15,000.00 Tax = 3,175.00 Salary that exceeds the highest salary in salary range 5 by 0.01 Salary = 100,000.00 Tax = 24,425.00 Salary that exceeds the highest salary in salary range 5

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.