Programming
posted by Derrick on .
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