Question: Develop a c++ program to calculate the overtime allowance for the workers. There are 2 categories of workers, Full Time (f) and Half time (h)
Develop a c++ program to calculate the overtime allowance for the workers. There are 2 categories of workers, Full Time (f) and Half time (h)
The program could do the calculation for more than one worker in a time. The rate for an hour of overtime is $25.00. However, not all workers are entitled for overtime allowance, where only worker with the position half time could apply for it. The program will then display the amount of payment that the worker will get at the end of the month; which includes the salary plus the OT allowance. Your main program should have function module get_position() // to get workers position Full Time and Half time get_salary // to get monthly salary amount. get_hours() // to get monthly overtime in hours. calculate_OT() //to calculate OT allowances

Overtime Allowance Program Please enter the number of worker doing OT:2 Worker 1 ******** f Please enter your position (f to full or h to half): Please enter your monthly salary: $ 2500 Please enter your hours of overtime: 5 You are not entitle for Overtime Allowance Worker 2 ******** h Please enter your position (f to full or h to half): Please enter your monthly salary: RM 1300 Please enter your hours of overtime:10 Worker 2's salary plus OT allowance is RM 1550 Thank you for using this program. Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
