58.9k views
2 votes
What will be the pseudo code and flow chart for this?

If the salary is 9000 or greater, tax of 15% should be applied. If the salary is less than 9000, no tax is applied.
Show the gross salary at the end.

User SteC
by
8.0k points

1 Answer

4 votes

Answer:

Sure! Here's a possible pseudo-code and flow chart for this program:

Pseudo code:

Ask the user for their salary.

If the salary is greater than or equal to 9000, apply a tax of 15% and calculate the net salary.

If the salary is less than 9000, do not apply any tax and set the net salary equal to the gross salary.

Display the gross and net salaries.

Flow chart:

+---------------------+

| Start Program |

+---------------------+

|

v

+---------------------+

| Ask for salary input |

+---------------------+

|

v

+------------------------+

| Check if salary >= 9000 |

+------------------------+

|

+----+----+

| |

v v

+----------------+ +----------------+

| Apply 15% tax | | Set net salary |

+----------------+ +----------------+

| |

v v

+----------------+ +----------------+

| Calculate net | | Display results |

+----------------+ +----------------+

|

v

+---------------------+

| End Program |

+---------------------+

Step-by-step explanation:

User Gong Pengjun
by
7.7k points

No related questions found