Please answer part I, iii and iv
Syarikat Smart Store Hypermarket Sdn. Bhd. wants to create a system that will calculate the weekly pay for its employees, based on the category and rate given in the table below. The employees in the category A1, A2 and M1 are paid standard rate for the first 44 hours, followed by 1.5 the standard rate for overtime pay. There is no overtime pay for M2 and BB categories. The total work hours for each employee cannot exceed 60 hours.
The system should request for the employee’s name, their IC number, the number of hours worked, and their category. The system should display all related information about the employee including the gross pay, overtime pay and the net pay.
Category |
Standard Rate: Pay/Hour |
A1 |
RM 5 |
A2 |
RM 7 |
M1 |
RM 10 |
M2 |
RM 15 |
BB |
RM 20 |
Here is a sample of a program’s interface dialog:
|
Based on the above programming problem:
The algorithm for the scenario is below -
Set Continue for Employees to 'Y'
Repeat until Continue is set to 'N'.
Input the name, NIC number, Category and Number of Hours worked per week.
while Number of Hours worked is less than or equal to 60 repeat below steps -
if Category is M2, gross pay is 44 multiplied by rm 15. net pay is equal to gross pay. overtime pay is zero else
if Category is BB, gross pay is 44 multiplied by rm 20. net pay is equal to gross pay. overtime pay is zero else
if Category is A1, gross pay is 44 multiplied by rm 5. if number of hours worked is >44, overtime hours will be number of hours worked - 44. overtime pay is overtime hours multiplied by 5*1.5. net pay is gross pay + overtime pay.
if Category is A2, gross pay is 44 multiplied by rm 7. if number of hours worked is >44, overtime hours will be number of hours worked - 44. overtime pay is overtime hours multiplied by 7*1.5. net pay is gross pay + overtime pay.
if Category is M1, gross pay is 44 multiplied by rm 10. if number of hours worked is >44, overtime hours will be number of hours worked - 44. overtime pay is overtime hours multiplied by 7*1.5. net pay is gross pay + overtime pay.
Display Name, NIC Number, Category, Number of Hours Worked, Gross Pay, Overtime Pay and Net Pay.
Input continue value.
Please answer part I, iii and iv Syarikat Smart Store Hypermarket Sdn. Bhd. wants to create...
Syarikat Smart Store Hypermarket Sdn. Bhd. wants to create a system that will calculate the weekly pay for its employees, based on the category and rate given in the table below. The employees in the category A1, A2 and M1 are paid standard rate for the first 44 hours, followed by 1.5 the standard rate for overtime pay. There is no overtime pay for M2 and BB categories. The total work hours for each employee cannot exceed 60 hours. The...
1.Calculate the Regular Pay and Overtime Pay based on a regular 40-hour workweek in cells F5 and G5 respectively. Pay overtime only for overtime hours. Note that the base work hours and overtime rate is given under the Assumptions section of the Payroll Data worksheet. In cell H5, calculate the Gross Pay based on the regular and overtime pay. 2. Write a formula in cell I5 to calculate the Taxable Pay. Multiply the number of dependents (given in column C)...
In C++ Please please help.. Assignment 5 - Payroll Version 1.0 In this assignment you must create and use a struct to hold the general employee information for one employee. Ideally, you should use an array of structs to hold the employee information for all employees. If you choose to declare a separate struct for each employee, I will not deduct any points. However, I strongly recommend that you use an array of structs. Be sure to read through Chapter...