Carefully analyze the given pseudo-code and supply the output based on each given test value.
Read salary
If salary < 50000 then tax = 0
else
If salary > 50000 AND salary < 100000 then tax = 50000 * 0.05
else
tax = 100000 * 0.30
Display tax
31. – 35. salary= 85000
36. – 40. salary = 42000
41. – 45. salary = 122000
Input salary= 85000
Output 2500
Input salary = 42000
Output 0
Input salary = 122000
Output 30000
Comments
Leave a comment