You are on page 1of 4

ABC Sdn Bhd

NameTextBox
Calculate Salary
CalculateSalaryButton
NameLabel
bje
Name: Clear Screen
ClearScreenButton

Salary: Exit ExitButton

SalaryLabel StandardSalesTextBox CustomerNoLabel


SalaryTextBox

CustomerNoTextBox
Standard Sales Amount: No. of
StandardSalesLabel
customer:

Total salary: SalaryAmountLabel


Priority Sales Amount:

PrioritySalesLabel

PrioritySalesTextBox TotalSalaryLabel

Task Object Event


Get the following order information from the user:
Name NameTextBox None
Salary SalaryTextBox None
Standard Sales Amount StandardSalesTextBox None
Priority Sales Amount PrioritySalesTextBox None
No. of customer CustomerNoTextBox None
Calculate the total salary CalculateSalaryButton Click

Display the following:


Name NameTextBox None
Salary SalaryTextBox None
Standard Sales Amount StandardSalesTextBox None
Priority Sales Amount PrioritySalesTextBox None
No. of customer CustomerNoTextBox None
Total salary CalculateSalaryButton, TotalSalaryLabel Click, None

End the application ExitButton Click

Clear the screen for the next staff ClearScreenButton Click

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

Total salary is equal to salary


4. Display total salary received for that month
5. End

You might also like