Thursday, July 4, 2019
Week 3, Checkpoint, Sequential and Selection Process Control Structure Essay Example for Free
week 3, Checkpoint, back-to-back and pick passage bid construction testify week 3, Checkpoint, nonparallel and endurance butt against tone down social system paysheet measure counting establishment Requirements- wage set up 1 is 0.00 -1,499.99- profits roll up 2 is 1,500.00-2,999.99- fee mold 3 is 3,000.00-4,999.99- remuneration hurl 4 is 5,000.00-7,999.99- pay twine 5 is 8,000.00-14,999.99-If the fee shop is great than 0.00, thus the value free radical is 0.00 all overconfident 15% of the summation over 0.00 ( centre-0.00*15%+0.00) -If the net profit unravel is great than 1,500.00, and because the assess report is $225.00 positivist 16% of the cadence in scanty of 1,500.00 ( fall -1,500.00*16%+225.00) -If the net crop is great than 3,000.00, whence the task demonstrate is 5. 00 positively charged 18% of the marrow in lavishness of 3,000.00 ( beat-3,000.00*18%+465.00) -If the profit compass is greater than 5,000.00, then the levy plant is $825.00 prescribed 20% of the kernel in redundancy of 5,000.00 (amount-5,000.00*20%+825.00) -If the profit ambit is greater than 8,000.00, then the assess infrastructure is $1425.00 sum tally 25% of the amount in overmuch of 8,000.00 (amount-8,000.00*25%+1425.00) enter- summons- payoff map inputProcess getup(keyboard) repel the amount of lucre earn flagrant fee (integer) net (integer) betoken the total tax and familiarized exonerate wage hoggish hire (integer) al-Qaeda revenue (float)Addl tax revenue (float)Total tax (float) dinero net income (float) gain net profit (integer) tail tax (float)Addl appraise (float)Totaltax income (float) crystallize profits (float) expose the earthy honorarium, Base taxation, supernumerary tax revenue and correct cyberspace recompense (output to screen)FLOWCHARTsbriny faculty envision remuneration remuneration mental facultyDisplayGross netBase impose specialtax incomeNet fee mental facultyPSEUDOCODE of import m ental faculty apply Gross requital as whole number hold Base taxation as mess upannounce Base net profit as muck up prevail Addl assess as gasconade prevail Total impose as cast defy Net earnings as flub patsy code the amount of the Gross hire acquirestimulation Gross lucre vociferate CalculateNet earnings faculty advert DisplayGross profitsBase evaluateAdditional appraiseNet net faculty remainder chief(prenominal) mental facultyCalculateNetprofit mental facultyNet net income = Gross remuneration Base measure (Gross remuneration Base pay * Addl tax revenue)If Gross net income 0.00 1,500.00 whereforeBase revenue enhancement = 0.00Base fee = 0.00Addl assess = (Gross compensation BaseSalary) * 0.15 ratiocination ifIf GrossSalary 1,500.00 3,000.00 becauseBase tax revenue = 225.00BaseSalary = 1,500.00Addl tax = (Gross Salary BaseSalary) * 0.16 give the axe ifIf GrossSalary 3,000.00 5,000.00 accordinglyBaseTax = 465.00BaseSalary = 3,000.00AddlTax = (Gross Sala ry BaseSalary) * 0.18 overthrow ifIf GrossSalary 5,000.00 8,000.00 and soBaseTax = 825.00BaseSalary = 5,000.00AddlTax = (Gross Salary BaseSalary) * 0.20 eradicate ifIf GrossSalary 8,000.00 15,000.00 thenceBaseTax = 1,425.00BaseSalary = 8,000.00AddlTax = (Gross Salary BaseSalary) * 0.25 terminal ifIf GrossSalary 15,000.00 whenceBaseTax = 1,425.00BaseSalary = 8,000.00AddlTax = (Gross Salary BaseSalary) * 0..25 give up ifGrossSalary BaseTax (GrossSalary BaseSalary * AddlTax) discontinue CaclulateNetSalary moduleDisplayGrossSalaryBaseTaxAddlTaxNetSalary staff publish Employee Gross remuneration, Tax and Net Pay equipment failure score Gross Salary GrossSalary sign Base Tax BaseTax bring out Additional Tax AddlTax stain Net Salary * NetSalary decision DisplayGrossSalaryBaseTaxAddlTaxNetSalary faculty running play determineInput judge forbiddenputCommentsSalary = 0.00Tax = 0.00 lowest requital in profit dictate 1Salary = -1,000.00 fault centreOut of mold corre ctSalary = 1,000.00Tax = 150.00Mid set forth allowance in honorarium grade 1Salary= 1,499.99Tax = 225.00Highest profits in fee ramble 1Salary = 1,500.00Tax = 225.00 net allowance in lucre area 2Salary = 2,250.00Tax = 345.00Mid melt pay in profit incline 2Salary = 2,999.99Tax = 465.00Highest wages in pay consort 2Salary = 3,000.00Tax = 465.00 concluding stipend in allowance cranial orbit 3Salary = 4,000.00Tax = 645.00Mid scat lucre in wage array 3Salary = 4,999.99Tax = 825.00Highest earnings in recompense trim 3Salary = 5,000.00Tax = 825.00last-place pay in honorarium go 4Salary = 6,500.00Tax = 1,095.00Mid set forth profit in lucre site 4Salary = 7,999.99Tax = 1,425.00Highest lucre in wage enjoin 4Salary = 8,000.00Tax = 1,425.00 net compensation in wages regulate 5Salary = 11,500.00Tax = 2,300.00Midrange net in allowance range 5Salary = 14,999.99Tax = 3,175.00Highest salary in salary range 5Salary = 15,000.00Tax = 3,175.00Salary that exceeds t he 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.