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. If the hours worked are less than or equal to 45 it’s normal hours and the normal HoursWorked amount is N$40.50 per hour. If the hours exceeded 45 than it’s overtime hours and the overtime HoursWorked amount is N$55.00 per overtime hours.
Following is the program that calculate and display employee’s weekly salary
Start
- Prompt for HoursWorked
- Get HoursWorked
- Normal HoursWorked = HoursWorked – Overtime HoursWorked
- Get normal HoursWorked
- If HoursWorked = 45 per day, then weekly salary = normal HoursWorked × normal HoursWorked amount
- Get the weekly salary
- If else 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 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
Josure Amunyela is an employee at Ayesha Beauty Creation and he worked for 48 and he got paid N$ 55.00 for overtime HoursWorked per day and N$ 40.50 for normal HoursWorked per day. Write a program that calculate a weekly salary. Give weekly salary as the output.
Total HoursWorked = 48 hours
Normal HoursWorked = 45 hours
Overtime HoursWorked = 3 hours
Normal HoursWorked amount = N$ 1822.50
Overtime HoursWorked amount = N$ 165.00
Weekly salary = N$ 1987.50 Expected output
START
- Prompt for total HoursWorked
- 48 hours
- Normal HoursWorked = 48 hours – 3 hours
- Get 45 hours
- If total HoursWorked = 45 then, weekly salary = 45hours × N$ 40.50
- Get N$ 1822.50
- If else HoursWorked > 45 then, overtime HoursWorked = 48 hours – 45 hours
- Get 3 hours
- Overtime HoursWorked amount = 3 hours × N$ 55.00
- Get N$ 165.00
- Normal HoursWorked amount = 45 hours × N$ 40.50
- Get N$ 1822.50
- Weekly salary = N$ 1822.50 + N$ 165.00
End if
- Get N$ 1987.50
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. If the hours worked are less than or equal to 45 it’s normal hours and the normal HoursWorked amount is N$40.50 per hour. If the hours exceeded 45 than it’s overtime hours and the overtime HoursWorked amount is N$55.00 per overtime hours.
Following is the program that calculate and display employee’s weekly salary
Start
End if
End
Josure Amunyela is an employee at Ayesha Beauty Creation and he worked for 48 and he got paid N$ 55.00 for overtime HoursWorked per day and N$ 40.50 for normal HoursWorked per day. Write a program that calculate a weekly salary. Give weekly salary as the output.
Total HoursWorked = 48 hours
Normal HoursWorked = 45 hours
Overtime HoursWorked = 3 hours
Normal HoursWorked amount = N$ 1822.50
Overtime HoursWorked amount = N$ 165.00
Weekly salary = N$ 1987.50 Expected output
START
End if
END