read basic
addpay = (tenure > 5) ? 0.10 * basic : 0
bonus = ((basic > 100000) ? 0.15 : (basic >= 45000) ? 0.10 : 0.05) * basic
gross = basic + addpay + bonus
print basic, addpay, bonus, gross
Design a flowchart and pseudo-code for a structured program that could be used
to calculate a sales person’s gross salary and output of the sales person’s basic salary,
additional pay, bonus, and gross salary.
ABC explosion ltd deals in information technology services and products. The salespersons are paid a basic salary and benefits as follows:
Additional pay of 10% of basic salary for salesperson who have worked for the company for more than five years
A monthly bonus based on monthly sales as shown in the table below
Monthly sales Bonus rate
Above 100,000 15%
Between 45,000 and 100,000 10%
Below 45,000 5%
2 answers
Osm