QUESTION
SOLUTION
Answer 1: The defining diagram for problem 10 is as under:
Inputs |
Processing |
Outputs |
Retail price Transaction Code Employee Number |
Read retail price, transaction code and employee number from sale commission file Calculate the commission Display retail price, commission and employee number |
Retail price Commission Employee Number |
Answer 2: The output data for each record of the input data for problem 10 is given as under:
Input data |
Output data |
||||
Retail Price |
Commission Category |
Employee Number |
Retail Price |
Commission |
Employee Number |
200.00 |
M |
456 |
200.00 |
14.00 |
456 |
2222.22 |
L |
789 |
2222.22 |
222.22 |
789 |
111.00 |
M |
1011 |
111.00 |
7.77 |
1011 |
9999.99 |
L |
1213 |
9999.99 |
1000.00 |
1213 |
44.00 |
S |
1415 |
44.00 |
2.20 |
1415 |
Answer 3: The defining diagram for problem 9 is as under:
Inputs |
Processing |
Outputs |
Taxable income amount |
Read taxable income amount Determine tax payable Display tax payable amount |
Tax payable amount |
Answer 4: Tax payable for the given amounts is as under:
Taxable Income |
Tax Payable |
1200.00 |
Nil |
12000.00 |
2261.40 |
22222.00 |
5633.80 |
44444.00 |
15530.24 |
99999.99 |
43706.19 |
Answer 5: Pseudo code algorithm for problem 9 without using CASE is as under:
GET taxable income
IFtaxable income ≥ 1 AND taxable income< 4462
SET tax payable as 0
ENDIF
IFtaxable income≥ 4462 AND taxable income< 17894
SET tax payable as 0.30 times (taxable income minus 4462)
ENDIF
IFtaxable income≥ 17894 AND taxable income< 29500
SET tax payable as 4119 plus 0.35 times (taxable income minus 17894)
ENDIF
IFtaxable income≥ 29500 AND taxable income< 45788
SET tax payable as 8656 plus 0.46 times (taxable income minus 29500)
ENDIF
IFtaxable income≥ 45788
SET tax payable as 11179 plus 0.60 times (taxable income minus 45788)
ENDIF
DISPLAY tax payable
HALT
Answer 6: Pseudo code algorithm for problem 9 without using IF is as under:
GET taxable income
SET count as taxable income
WHILE count≥ 1AND count < 4462
SET tax payable as 0
SET count as 0
ENDWHILE
WHILE count≥4462AND count <17894
SET tax payable as0.30 times (taxable income minus 4462)
SET count as 0
ENDWHILE
WHILE count≥ 17894AND count <29500
SET tax payable as4119 plus 0.35 times (taxable income minus 17894)
SET count as 0
ENDWHILE
WHILE count≥ 29500AND count <45788
SET tax payable as8656 plus 0.46 times (taxable income minus 29500)
SET count as 0
ENDWHILE
WHILE count ≥45788
SET tax payable as 11179 plus 0.60 times (taxable income minus 45788)
SET count as 0
ENDWHILE
DISPLAY tax payable
HALT
Reference List:
JD. (2003). Available at: <http://users.csc.calpoly.edu/~jdalbey/SWE/pdl_std.html> [Accessed on 05 April 2012]
Shelburne Brian. (2008). Comp 150 – Computer Programming. Available at: <http://userpages.wittenberg.edu/bshelburne/Comp150/Algorithms.htm> [Accessed on 05 April 2012]
Whitfort Tim. (n.d). Defining Diagram Guide. Available at: <http://ironbark.bendigo.latrobe.edu.au/subjects/PE/2012s1/resources/defining_diagram_guide.html> [Accessed on 05 April 2012]
JD71
But you can order it from our service and receive complete high-quality custom paper. Our service offers Accounting essay sample that was written by professional writer. If you like one, you have an opportunity to buy a similar paper. Any of the academic papers will be written from scratch, according to all customers’ specifications, expectations and highest standards.”