Wednesday, April 10, 2019
Week 3, Checkpoint, Sequential and Selection Process Control Structure Essay Example for Free
Week 3, Checkpoint, Sequential and Selection Process Control grammatical construction EssayWeek 3, Checkpoint, Sequential and Selection Process Control StructurePayroll tax slowness System Requirements- honorarium diverge 1 is 0.00 -1,499.99- stipend part 2 is 1,500.00-2,999.99-profit Range 3 is 3,000.00-4,999.99-profit Range 4 is 5,000.00-7,999.99- honorarium Range 5 is 8,000.00-14,999.99-If the Salary Range is greater than 0.00, consequently the tax lascivious is 0.00 plus 15% of the sum over 0.00 (amount-0.00*15%+0.00) -If the Salary Range is greater than 1,500.00, then the tax base is $225.00 plus 16% of the amount in excess of 1,500.00 (amount -1,500.00*16%+225.00) -If the Salary Range is greater than 3,000.00, then the tax base is 5. 00 plus 18% of the amount in excess of 3,000.00 (amount-3,000.00*18%+465.00) -If the Salary Range is greater than 5,000.00, then the tax base is $825.00 plus 20% of the amount in excess of 5,000.00 (amount-5,000.00*20%+825.00) -If the S alary Range is greater than 8,000.00, then the tax base is $1425.00 plus 25% of the amount in excess of 8,000.00 (amount-8,000.00*25%+1425.00)Input-Process-Output ChartInputProcessOutput(keyboard)Get the amount of net income earnedGrossSalary (integer)Salary (integer) lick the total tax and adjusted net earningsGrossSalary (integer)Base tax (float)Addl revenue enhancement (float)TotalTax (float) authoriseSalary (float)GrossSalary (integer)BaseTax (float)AddlTax (float)TotalTax (float)NetSalary (float)Display the Gross Salary, Base Tax, additive Tax and Adjusted Net Salary (output to screen)FLOWCHARTsMain facultyCalculate Net Salary ModuleDisplayGrossSalaryBaseTaxAdditionalTaxNetSalary ModulePSEUDOCODEMain ModuleDeclare GrossSalary as IntegerDeclare BaseTax as drownDeclare BaseSalary as FloatDeclare AddlTax as FloatDeclare TotalTax as FloatDeclare NetSalary as FloatPrint Enter the amount of the Gross Salary earnedInput GrossSalary appoint CalculateNetSalary ModuleCall DisplayGro ssSalaryBaseTaxAdditionalTaxNetSalary Module decision Main ModuleCalculateNetSalary ModuleNetSalary = GrossSalary BaseTax (GrossSalary BaseSalary * AddlTax)If GrossSalary 0.00 1,500.00 ThenBaseTax = 0.00BaseSalary = 0.00AddlTax = (Gross Salary BaseSalary) * 0.15End ifIf GrossSalary 1,500.00 3,000.00 ThenBaseTax = 225.00BaseSalary = 1,500.00AddlTax = (Gross Salary BaseSalary) * 0.16End ifIf GrossSalary 3,000.00 5,000.00 ThenBaseTax = 465.00BaseSalary = 3,000.00AddlTax = (Gross Salary BaseSalary) * 0.18End ifIf GrossSalary 5,000.00 8,000.00 ThenBaseTax = 825.00BaseSalary = 5,000.00AddlTax = (Gross Salary BaseSalary) * 0.20End ifIf GrossSalary 8,000.00 15,000.00 ThenBaseTax = 1,425.00BaseSalary = 8,000.00AddlTax = (Gross Salary BaseSalary) * 0.25End ifIf GrossSalary 15,000.00 ThenBaseTax = 1,425.00BaseSalary = 8,000.00AddlTax = (Gross Salary BaseSalary) * 0..25End ifGrossSalary BaseTax (GrossSalary BaseSalary * AddlTax) End CaclulateNetSalary ModuleDisplayGrossSa laryBaseTaxAddlTaxNetSalary ModulePrint Employee Gross Pay, Tax and Net Pay BreakdownPrint Gross Salary GrossSalaryPrint Base Tax BaseTaxPrint Additional Tax AddlTaxPrint Net Salary * NetSalaryEnd DisplayGrossSalaryBaseTaxAddlTaxNetSalary ModuleTest ValuesInput anticipate OutputCommentsSalary = 0.00Tax = 0.00Lowest salary in salary identify 1Salary = -1,000.00Error MessageOut of lay out conditionSalary = 1,000.00Tax = 150.00Midrange salary in salary range 1Salary= 1,499.99Tax = 225.00Highest salary in salary range 1Salary = 1,500.00Tax = 225.00Lowest salary in salary range 2Salary = 2,250.00Tax = 345.00Midrange salary in salary range 2Salary = 2,999.99Tax = 465.00Highest salary in salary range 2Salary = 3,000.00Tax = 465.00Lowest salary in salary range 3Salary = 4,000.00Tax = 645.00Midrange salary in salary range 3Salary = 4,999.99Tax = 825.00Highest salary in salary range 3Salary = 5,000.00Tax = 825.00Lowest salary in salary range 4Salary = 6,500.00Tax = 1,095.00Midrange salar y in salary range 4Salary = 7,999.99Tax = 1,425.00Highest salary in salary range 4Salary = 8,000.00Tax = 1,425.00Lowest salary in salary range 5Salary = 11,500.00Tax = 2,300.00Midrange salary in salary range 5Salary = 14,999.99Tax = 3,175.00Highest salary in salary range 5Salary = 15,000.00Tax = 3,175.00Salary that exceeds the highest salary in salary range 5 by 0.01 Salary = 100,000.00Tax = 24,425.00Salary that exceeds the highest salary in salary range 5
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.