Creating a flowchart to illustrate the program for calculating the gross salary of employees at Mutison Chemists involves several key steps. Below, I will describe how to set up the flowchart, detailing each component:
Flowchart Components
-
Start: Indicate the start of the process.
-
Input Employee Details:
- Input the employee's name.
- Input the employee's basic salary.
- Input the employee's years of experience.
- Input the employee's sales for the month.
-
Calculate Additional Pay:
- Decision: If years of experience > 10, then Additional Pay = 10% of Basic Salary.
- If not, Additional Pay = 0.
-
Calculate Bonus:
- Decision: If Sales > 200,000, then Bonus = 15% of Sales.
- Decision: Else if Sales >= 100,000, then Bonus = 10% of Sales.
- Decision: Else Bonus = 5% of Sales.
-
Calculate Gross Salary:
- Gross Salary = Basic Salary + Additional Pay + Bonus
-
Output:
- Output Employee's Name.
- Output Basic Salary.
- Output Additional Pay.
- Output Bonus.
- Output Gross Salary.
-
End: Indicate the end of the process.
Text Representation of the Flowchart
Start
|
v
Input Employee Name
|
v
Input Basic Salary
|
v
Input Years of Experience
|
v
Input Sales of the Month
|
v
+-----------------------------+
| Is Experience > 10 years? |
+-----------------------------+
| Yes / No
/ \
v v
Additional Additional Pay = 0
Pay = 10% of Basic Salary
|
v
+------------------------------+
| Is Sales > 200,000? |
+------------------------------+
| Yes / No
/ \
v v
Bonus = 15% of Sales
|
v
+-------------------------------+
| Is Sales >= 100,000? |
+-------------------------------+
| Yes / No
/ \
v v
Bonus = 10% of Sales
|
v
Bonus = 5% of Sales
|
v
Gross Salary = Basic Salary + Additional Pay + Bonus
|
v
Output Employee's Name
Output Basic Salary
Output Additional Pay
Output Bonus
Output Gross Salary
|
v
End
Usage
You can now reference this text-based flowchart when creating a visual flowchart using flowcharting software or by hand. Each block represents a step in the calculation process, and arrows show the flow of logic based on decisions made during the computation of the gross salary.