Question: 119 marks) Problem-solving Question PART C monthly salary based on the infor A company pays its employees who have no fixed in the table below
119 marks) Problem-solving Question PART C monthly salary based on the infor A company pays its employees who have no fixed in the table below Employee Employee Payment Method Type rst 40 hours, salary is hours x RM15.00 tional hours, RM600 + RM25.00 x additional h Hourly worker b. For additional Commissioned RM700 + 5.5% of Gross sales worker The program will stop when the Write a program to calculate the salary of each employee code. user enters the value -1 for the employee code. sample Output: Values entered by the user are in itolics and underlined Enter employee code ( 1, 2, or -1 to stop): 5 INVALID code! Enter employee code (1, 2, or-1 to stop): 1 Hours worked (1 -60) ? 100 INCORRECT Hours worked (1- 60) 40 Salary RM 600.00 Enter employee code (1, 2, or -1 to stop): 1 Hours worked (1- 60)? 55 Salary = RM 1162.50 Enter employee code (1, 2, or -1 to stop):1 Hours worked (1-60)? 28 Salary RM 420.00 Enter employee code (1, 2, or -1 to stop): 2 Gross sales RM? 5000 Salary RM 975.00 Enter employee code (1, 2, or -1 to stop): 2 Gross sales RM? 4250 Salary RM 933.75 Enter employee code (1, 2, or-1 to stop):1 Thank you Complete the source code in the next page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
