Professional Documents
Culture Documents
NameTextBox
Calculate Salary
CalculateSalaryButton
NameLabel
bje
Name: Clear Screen
ClearScreenButton
CustomerNoTextBox
Standard Sales Amount: No. of
StandardSalesLabel
customer:
PrioritySalesLabel
PrioritySalesTextBox TotalSalaryLabel
1. Get inputs (name, salary, standard sales amount, priority sales amount, customer number)
2. Calculate customer amount
a. If customer number greater than 3
i. Customer amount is equal to customer number minus 3 (first 3 customers) multiply by 175 + 450 (amount to be received
first three customers)
b. If customer number less than 3
i. Customer amount is equal to customer number multiply by 150
3. Calculate salary
a. If salary less than or equal to 375 and standard sales greater than 38000 and priority sales greater than or equal to 25000 THEN
i. Total salary = salary + (standard sales – 38000) * 0.1 + (priority sales – 25000) * 0.15 + customer amount
b. If salary less than 425 and standard sales greater than 40000 and priority sales greater than or equal to 25000 THEN
i. Total salary = salary + (standard sales – 40000) * 0.1 + (priority sales – 25000) * 0.15 + customer amount
c. If salary above or equal to 425 and standard sales greater than 42000 and priority sales greater than or equal to 25000 THEN
i. Total salary = salary + (standard sales – 42000) * 0.1 + (priority sales – 25000) * 0.15 + customer amount
ELSE