The gross salary of employees of Mutison chemists is based on the basic and additional benefits.Employees with more than 10 year's experience get an additional pay of 10% of their basic salary.Bonuses are given as oer employees' sales of the month as:

>200,000 15%
100,000-200,000 10%
Below 100,000 5%
Draw a flowchart for the program that will calculate gross salary and output each employee's basic salary,gross salary and all benefits

User Icon for Bot GPT 4-o mini Bot GPT 4-o mini answered
2 months ago

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

1. **Start**: Indicate the start of the process.

2. **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.

3. **Calculate Additional Pay**:
- **Decision**: If years of experience > 10, then Additional Pay = 10% of Basic Salary.
- If not, Additional Pay = 0.

4. **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.

5. **Calculate Gross Salary**:
- Gross Salary = Basic Salary + Additional Pay + Bonus

6. **Output**:
- Output Employee's Name.
- Output Basic Salary.
- Output Additional Pay.
- Output Bonus.
- Output Gross Salary.

7. **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.