ICG PROJECT
Prompt 2:
Ayesha Beauty Creation has human resource department like employees who responsible for running the business activities. Labors are shared among employees like some are on production of products, some are on sales and marketing and some are delivering products to customers.
Employees are paid depending on the hours they worked and there is overtime hours and normal hours. If the hours worked are less than or equal to 45 it’s normal hours and the normal HoursWorked amount is N$70.50 per hour. If the hours exceeded 45 than it’s overtime hours and the overtime HoursWorked amount is N$85.00 per overtime hours.
Following is the program that calculate and display employee’s weekly salary
Define diagram
Input Process Output
HoursWorked Prompt HoursWorked
Get HoursWorked WeekelySalary
Calculate weeklySalary
Start
- Prompt for total HoursWorked
- Get total HoursWorked
- If HoursWorked = 45 per day, then weekly salary = total normal HoursWorked × normal HoursWorked total amount
- Get the weekly salary
- If else total HoursWorked > 45 per day then overtime HoursWorked = total HoursWorked – normal HoursWorked
- Get overtime HoursWorked
- Overtime HoursWorked total amount = overtime HoursWorked × overtime HoursWorked amount
- Get overtime HoursWorked total amount
- Normal HoursWorked = total HoursWorked – overtime HoursWorked
- Get normal HoursWorked
- Normal HoursWorked total amount = normal HoursWorked × normal HoursWorked amount
- Get the normal HoursWorked total amount
- Weekly salary = overtime HoursWorked total amount + normal HoursWorked total amount
End if
- Get weekly salary
End
ICG PROJECT
Prompt 2:
Ayesha Beauty Creation has human resource department like employees who responsible for running the business activities. Labors are shared among employees like some are on production of products, some are on sales and marketing and some are delivering products to customers.
Employees are paid depending on the hours they worked and there is overtime hours and normal hours. If the hours worked are less than or equal to 45 it’s normal hours and the normal HoursWorked amount is N$70.50 per hour. If the hours exceeded 45 than it’s overtime hours and the overtime HoursWorked amount is N$85.00 per overtime hours.
Following is the program that calculate and display employee’s weekly salary
Define diagram
Input Process Output
HoursWorked Prompt HoursWorked
Get HoursWorked WeekelySalary
Calculate weeklySalary
Start
End if
End