Write the pseudocode for a program to calculate the wages of a sales according to the following rules. The wage is calculated at a rate of 15% of sales. If the salesman has been with the company more than three years, he receives a loyalty bonus of 10% of his calculated wages.

letting

s = sales,
n = length of time with company,
w = wages,

w = .15s
if (n>3) w *= 1.10

In this case you are going to calculate before drawing the chart

How is it going to be

Sure! Here's the pseudocode for the given program:

```
1. Start

2. Initialize the variables:
- sales
- yearsWithCompany
- wage
- loyaltyBonus
- totalWage

3. Read the value of sales

4. Read the value of yearsWithCompany

5. Set wage = 0.15 * sales
(Calculate the wage at a rate of 15% of sales)

6. If yearsWithCompany > 3, then
Set loyaltyBonus = 0.1 * wage
(Calculate the loyalty bonus at a rate of 10% of wage)
Else
Set loyaltyBonus = 0
(No loyalty bonus if yearsWithCompany <= 3)

7. Set totalWage = wage + loyaltyBonus
(Calculate the total wage by adding wage and loyaltyBonus)

8. Display totalWage as the output

9. Stop
```

This pseudocode outlines the steps necessary to calculate the wages of a salesman based on the given rules. It prompts for the sales amount and the years the salesman has been with the company and then calculates the wage, loyalty bonus, and total wage accordingly. The final result, `totalWage`, is then displayed as the output.