You are on page 1of 2

Pseudocode

Fname - Firstname
Qual - Qualification Code
Gpay - Gross Pay
ITax - Income Tax
NPay - Net Pay
Count - Count number of master teacher
Loop - For Loop

Start
Count=0
ForLoop = 1 to 16
Read Fname, Qual
If Qual = “high” then
Gpay=80000
Else
If Qual = “assoc”then
GPay = 100000
Else
If Qual = “bach”then
GPay = 160000
Else
If Qual = “mash”then
GPay = 180000
Count=count + 1
Else
GPay = 240000
Endif
Endif
Endif
Endif

Fi GPay>130000 then
ITax=(GPay-130000)-*0.25
Else
Itax=0
Endif
NPay+GPay-ITax
Print FName, GPay, ITax, NPay
Endifor
Print “The number of master teacher =”,Count
End
Trace Table

First Name Qualification Gross Pay Income Tax Net Pay Masterscount
Tracy DOCT $240,000.00 $60,000.00 $180,000.00 0
Stacy-Ann DOCT $240,000.00 $60,000.00 $180,000.00 0
Tiffany MAST $180,000.00 $45,000.00 $135,000.00 1
Shawn HIGH $80,000.00 $0.00 $80,000.00 1
David BACH $160,000.00 $40,000.00 $120,000.00 1
Trudy MAST $180,000.00 $45,000.00 $135,000.00 2
Howard BACH $160,000.00 $40,000.00 $120,000.00 2
Kadene DOCT $240,000.00 $60,000.00 $180,000.00 2
James HIGH $80,000.00 $0.00 $80,000.00 2
Sandra BACH $160,000.00 $40,000.00 $120,000.00 2
Audrey BACH $160,000.00 $40,000.00 $120,000.00 2
Emily ASSOC $100,000.00 $0.00 $100,000.00 2
Julia MAST $180,000.00 $45,000.00 $135,000.00 3
David BACH $160,000.00 $40,000.00 $120,000.00 2
Wayne HIGH $80,000.00 $0.00 $80,000.00 3
Marsha BACH $160,000.00 $40,000.00 $120,000.00 3

You might also like