Answer to Question #304735 in Algorithms for astrid

Question #304735

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


1
Expert's answer
2022-03-02T08:20:45-0500

Input salary= 85000

Output 2500

Input salary = 42000

Output 0

Input salary = 122000

Output 30000


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS